Forum Moderators: coopster

Message Too Old, No Replies

pass info from PHP to HTML

pass info from PHP to HTML

         

ryanc

9:18 pm on Jan 5, 2006 (gmt 0)

10+ Year Member


I'm wanting to pass a value from PHP into a hidden input in HTML. I don't want it to travel in the URL if possible.

for example to help paint the picture.

From PHP
I want to pass this: value="true"

To HTML
<input type="hidden" value="false">

I appreciate any help

Thanks,
ryanc

someone

9:23 pm on Jan 5, 2006 (gmt 0)

10+ Year Member



you can set the hidden input value a variable.

$value = "TRUE";

<input type="hidden" value="<?=$value?>">