Forum Moderators: coopster
the user selects a value, I store it in a hidden tag, the user hits submit and goes to the next form. I can see the values stored in the URL but I cannot get them to display for the user.
I am using the simple echo, <?php echo $var1?>
Can anyone help me?
I use Dreamweaver MX. I have xhtml compliant checked. Does being XHTML compliant screw up PHP?
My guess is you need to use the $_GET superglobal [php.net].
So do this <?php echo $_GET['var1']?>
function get_input()
{
$in = $_GET + $_POST;
return $in;
} // end function get_input();
You use this at the top of your program by coding:
$in = get_input();
now you can use the hidden values coming in by calling the array value of $in using the same name.
$useremail = $in['email'];
$useraddress = $in['address'];
$userphone = $in['phone'];
and so on, just to give an example.
Glenn Hefley