I have a page that first saves a record, and then sends the control back to the referring page using:

<?php
mysql_query("insert into table (field1, field2) values ('value1', 'value2')");
header("Location: " . $_SERVER['HTTP_REFERER']);
?>

Suppose, it all begins from page1.php. On page2.php it saves and sends the control back to page1.php. The problem is, when I refresh my browser, it again saves the record even when currently page1.php is loaded. How is it happening?

Thanks.
Amrit
http://www.aboutwebdesigning.com


____ • The WDVL Discussion List from WDVL.COM • ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
      Send Your Posts To: wdvltalk@lists.wdvl.com
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: archive@jab.org
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to