Hello,
I wish to write an HTML file with PHP script that will show a text field already filled with data (variable).
How can I do it?
Thanks a lot.
Ashz.
must have file extention .php
then in in an input feild have
value='$var'
in a textarea do this <textarea cols= rows= name=>$var</textarea>
Thats pretty simple
Just rename your HTML file to .php, and in the place where you want the text field to appear, put:
<textarea name="textfield" cols="20" rows="5"><?php print "whatever you want to appear in the text field"; ?></textarea>