RE: [PHP] input

From: Date: Wed, 13 Mar 2002 13:07:44 +0000
Subject: RE: [PHP] input
Groups: php.general 
Request: Send a blank email to php-general+get-88325@lists.php.net to get a copy of this message
Nope, that's not the problem. the $_POST[] is NOT inside single-quotes. The problem is he used commas before and after the $_POST[]. -----Original Message----- From: Edward van Bilderbeek - Bean IT [mailto:edward@bean-it.nl] Sent: Wednesday, March 13, 2002 7:02 AM To: PHP-General Subject: Re: [PHP] input the single quotes you use for your echo indicate that the variable in your echoed string won't be parsed.... double quotes indicate that it will be parsed... e.g. $test = 1 echo '$test' // prints: $test echo "$test" // prints: 1 Greets, Edward > > > hello, > > Someone was kind enough to give me this code for sending a value from > > one page to another, but it doesn't work. I wonder if anyone can see > > anything wrong: > > > > <?php > > echo ' > > <input name="inp" type="hidden" value="', > > $_POST['inp'], '"> > > '; > > ?> > > > > I want to pass $inp to another pagee. > > > > Thanks In advance > > John > > > > _________________________________________________________________ > > Chat with friends online, try MSN Messenger: > > http://messenger.msn.com > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php > > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#88325) next »