Create seperate documents: one to display the form and another to process the form.
add.php // displays new form add_handler.php // process form input On the form processing, check for the presence of HTTP_POST_VARS before proceeding. if (isset($HTTP_POST_VARS)) { ### process form ### } else header("Location: add.php"); > -----Original Message----- > From: WISTA.pl [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, June 12, 2002 3:29 PM > To: [EMAIL PROTECTED] > Subject: [PHP] F5 problem... > > > Hello group, > > I need a good solution to prevent sending form data to server > after hiting > refresh. How can PHP know that user hit refresh and sent > data that already > have been stored in database (without querying database)? > > Remek > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > **************************************************************************** This message is intended for the sole use of the individual and entity to whom it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you very much. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php