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

Reply via email to