-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
to avoid other issues followed by other threads about the same stuff of every 2 weeks:
echo '<a href="input.php?Stock='. urlencode($var) .'">Click to add</a>'
John Nichel wrote:
Steve wrote:
I have this code
$var=$_POST['Stock']; in one page
further down in the code, if certain conditions are met, I want the user to click on a link that will take them to a form to fill in some info. I need to have the data that is in $var passed along to that new url.
So I have
$var=$_POST['Stock']; in one page . . . echo '<a href="input.php?Stock">Click to add</a>'
input.php is the form page. How do I get the Stock from the fisrt page to the second using the ? syntax?
echo ( '<a href="input.php?Stock=' . $var . '">Click to add</a>' );
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFAOuW9axdA/5C8vH8RArskAKCqgJMqBprdh2EeD/BgyFQ3lNpIBACg3xlt iAeH+Pd1pU/An9UiuxoIqVs= =yRUT -----END PGP SIGNATURE-----
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php