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:

See? Change that line to

echo $_POST[$i];

and it should work just fine.


--Joseph Guhlin
Web Programmer / Unix Consultant / PHP Programmer

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to