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

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

30 of 67 people (45%) answered Yes
Recently 2 of 10 people (20%) answered Yes

Entry

How can I avoid click REFRESH button for repost data in a form ?

Jul 23rd, 2001 07:49
Tobias Sasse, Gary Chu,


One way is, to send the formdata to a script that manages the database-
access and stuff, and than returns by setting the http-header:
header("Location: origin-file.php");
The visitor will not even be aware that he was redirected.
Remember: Your script must - usualy - not produce any output before 
this header !