Re: Post Variables
| From: | bahwi | Date: | Wed, 04 Dec 2002 23:02:02 +0000 |
| Subject: | Re: Post Variables | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-127047@lists.php.net to get a copy of this message | ||
The problem is right here:
for ($i=0; $i<=12; $i++)
{
echo $_POST['$i'];
}
Single quotes cause variables to not be interpolated. IE: <?php
$i = 5;
echo $i;
echo "$i";
echo '$i';
?>
this prints out:
55$i
See? Change that line to
echo $_POST[$i];
and it should work just fine.
Regards,
--Joseph Guhlin
http://www.josephguhlin.com/
Web Programmer / Unix Consultant / PHP Programmer