Comparing form variables using a loop
| From: | J. Myers | Date: | Tue, 15 Aug 2000 15:33:46 +0000 |
| Subject: | Comparing form variables using a loop | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-11827@lists.php.net to get a copy of this message | ||
Hi again,
We're submitting a form containing a lot of variables that we would like
to compare using a loop.
Here's what it looks like:
Form variables:
D0_0600SHOW = "Crow"
D1_0600SHOW = "Crow"
D0_0630SHOW = "Bat"
D1_0630SHOW = "Dog"
Script:
Eg.
Loop Start
if $D[x]_[y]SHOW == $D[x++]_[y++]SHOW
Loop Stop
What it is we wish to accomplish is to have PHP reference the values of
the submitted variables
dynamically.