Any of these will work:

<input type='text' name='foo' value='<?php echo $foo; ?>' size='20' />
<input type='text' name='foo' value='<?=$foo?>' size='20' />
<? echo "<input type='text' name='foo' value='{$foo}' size='20' />"; ?>

easy :)

Justin


On Monday, August 11, 2003, at 07:01 PM, bob pilly wrote:


Hi all

Is there anyway in php to fill a HTMl text input field
with a php variable? Or do i have to use javascript?

Thanks for any help in advance!

_______________________________________________________________________ _
Want to chat instantly with your online friends? Get the FREE Yahoo!
Messenger http://uk.messenger.yahoo.com/


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

---
[This E-mail scanned for viruses]




--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to