Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to keep the data in text box after sumit form?

Status
Not open for further replies.

alan123

MIS
Oct 17, 2002
149
US
Hi,

Can anyone help me to find solution?
I want to submit a form which contains name,age... through text box, how can I make these data stay in the box after I submit the form? usually all data's gone after clicking submit button.

thanks


 
Two questions:

1.) Where does the form submit to? Self, a script, another page?
2.) What type of page are you submitting to? ASP, CF, PHP, HTML, etc.

DeZiner
Never be afraid to try something new.
Remember that amateurs built the Ark.
Professionals built the Titanic
 
Hi,

The form submit data to database through PHP, meanwhile after submitting I want it return to its own page with name,age stay on the box, user just enter other box so they don't have to type those personal info again.
 
either session varibles of set a cookie -- also are you posting or getting? --

a session variable would work best

session_register("fieldname");

then just <? print '$HTTP_GET_VARS['filedname'] ?>

<? print &quot;Welcome $HTTP_GET_VARS['fieldname'] -- To my site!&quot; ?>

or something along this line...once you figure it out if you could post your code I would appreciate it as i am learing php myself


[Hammer]
Nike Failed Slogans -- &quot;Just Don't Do It!&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top