TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   XHTML, HTML, CSS (http://www.talkphp.com/xhtml-html-css/)
-   -   seeding an input text field with a string (http://www.talkphp.com/xhtml-html-css/1853-seeding-input-text-field-string.html)

joby1 01-03-2008 04:44 PM

seeding an input text field with a string
 
If I have a string e.g. $podname and it = "abc123"

How would I get an input textfield to use this as it's 'init val'
in an html form?

Please please help!

sjaq 01-03-2008 05:09 PM

HTML Code:

<input type="text" name="someval" value="<?php echo $podname; ?>" />

joby1 01-03-2008 05:34 PM

Thanks, you are a star.
Didn't work at first but saved the file with a php instead of html and it all worked fine.

Thanks again

Joe


All times are GMT. The time now is 06:52 AM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0