I know I'm not doing this right, but ..

What I want to do is display the value of $q1 through $q3.
How? I can't get eval() to do it, can I?

for ($i = 1; $i <= 3; $i++)
{
$x= eval ("\$q".$i);
echo"<b>$x</b>\n";
echo"<br><input type=\"hidden\" name=\"a".$i."\" value=\"\">\n";
}

John


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to