Re: input

From: Date: Wed, 13 Mar 2002 13:09:23 +0000
Subject: Re: input
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88326@lists.php.net to get a copy of this message
On Wednesday 13 March 2002 21:02, Edward van Bilderbeek - Bean IT wrote: > 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 But the way it's being used is: echo 'xxx', $XXX, 'xxx'; ie the variable is not inside the single-quotes. > > 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'], '"> > > > '; > > > ?> -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* The Pig, if I am not mistaken, Gives us ham and pork and Bacon. Let others think his heart is big, I think it stupid of the Pig. -- Ogden Nash */

« previous php.general (#88326) next »