Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

DevArticles:
More Power for PHP
Feb 03, 2003 @ 13:32:18

If you remember a while back, DevArticles had a "power tips" article that several of our readers didn't seem to think was all that powerful. Well, just for you guys out there - here's the next edition of at series - JV’s Power Tips for PHP (Part 2).

In this new article, they start of talking about a sample usage of forms with PHP, making use of the $_POST array and some if statements (and later, some dynamic arrays) to evaluate which settings were "turned on" from the previous form.

In their third example, they get a little nuts, using the ternary operator to evaluate which settings to print out. And, finally, their last example to check to see which settings of the form were selected - a foreach loop with an additional array going through the $_POST array. Sound confusing? Well, maybe you should check it out to read more....

tagged:

Link:


Trending Topics: