Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

Show variable in text field

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

Show variable in text field

Postby ashz » Sun Dec 01, 2002 2:51 am

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
New php-forum User
New php-forum User
 
Posts: 14
Joined: Thu Oct 31, 2002 7:40 am

Postby Oleg Butuzov » Sun Dec 01, 2002 4:44 am

Code: Select all
<?
echo "<form action=$PHP_SELF method=get>
<input type=text value=$_GET[name]>
<input type=submit>
</form>
?>
Oleg Butuzov
Last Samuray
Last Samuray
 
Posts: 831
Joined: Sun Jun 02, 2002 3:09 am


Return to PHP coding => General

Who is online

Users browsing this forum: Google [Bot] and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.