RE: [PHP] beginners question

From: Date: Tue, 24 Feb 2004 09:56:40 +0000
Subject: RE: [PHP] beginners question
Groups: php.general 
Request: Send a blank email to php-general+get-178662@lists.php.net to get a copy of this message
So you don't want the form data to be encoded in the url? Something like this would probably do it: <form action="input.php" method="post" enctype="multipart/form-data" name="form"> <input name="Stock" type="hidden" value="$var"> <input name="button" type="submit" value="Click to add"> </form> That'll just display a button that when pressed will pass $var to input.php > -----Original Message----- > From: Steve [mailto:gaowpze02@sneakemail.com] > Sent: 24 February 2004 05:16 > To: php-general@lists.php.net > Subject: [PHP] beginners question > > 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? > > -- > PHP General Mailing List (http://www.php.net/) To > unsubscribe, visit: http://www.php.net/unsub.php > > >

« previous php.general (#178662) next »