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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

pressing F5, post variable must be reset

Status
Not open for further replies.

michelleqw

Programmer
Jan 4, 2004
120
DE
Dear PHP user,

My last question was to reset the post variable. The answers we got where right, thanks again.

We are making a page to fill as MySQL table If we submit the information, via a post variable, it is put in the table.
If we press on the F5 button, the same information is filled again in the table because the post variable is filled again.

Now we write a select query and when there are rows selected, we can fill the information in the table.

We do think it can be easier, is there someone who knows a solution for this problem?

Nice regards,

Michelle.

 
You can use a DHTML solution to mark the page a having been submitted. The page checks at load if a hidden field (maybe timestamp) is filled - if not we know it is a fresh page and display it. If it is populated reset the form variables or reload the page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top