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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
- [PHP] Post Variables Brad Bonkoski
- Re: [PHP] Post Variables Chris Shiflett
- [PHP] Re: Post Variables bahwi
- [PHP] Re: Post Variables Mattia