Show variable in text field

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 14
Joined: Thu Oct 31, 2002 7:40 am

Show variable in text field

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


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.

User avatar
Oleg Butuzov
Last Samuray
Last Samuray
Posts: 831
Joined: Sun Jun 02, 2002 3:09 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>

Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 2 guests