changing post variable names
| From: | L Melville | Date: | Wed, 19 Sep 2001 11:57:07 +0000 |
| Subject: | changing post variable names | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-67822@lists.php.net to get a copy of this message | ||
Hi,
I have a php page that accepts post values (ie;
...../page.php?var1=0&var4=5).
Now there can be posted values between var(1) and var(10) and i want to
check if they exist and also utilise them. Is there a way of accessing
these values in a loop ie;-
for($i=1;$i<=10;$i++){
// do things in here that access the vars like this
$blah = $var$i;
}
thanks
lee