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
*/
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php