faqts : Computers : Programming : Languages : PHP : Common Problems

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 2 people (100%) answered Yes
Recently 2 of 2 people (100%) answered Yes

Entry

how can I return the data in html form to avoid retyping by the user

May 7th, 2004 14:25
Narendra Jain, chaitanya thakur,


Generate the form as below:
<form method="post" action="<? echo $PHP_SELF; ?>">
<input type="text" name="firstname" value="<? echo $firstname; ?>">
<input type-"text" name="lastname" value="<? echo $lastname; ?>">
<input type="submit" name="formcomplete" value="Sumbit My Form">
</form>
This was the script will take over once the user clicks on the "Submit
My Form" button. The script then takes the firstname and lastname
variables and puts them back on the form.