I did this a lot when I built my quote program for my previous company. I have all my code at home, hence no way to give examples that I know work, however what I did was dump the form to a php page which processed the form and then used the header.location pieces to dump the user to the page they needed to go.
If you want to play with it some: http://lonewolf.homelinux.net/quoter/ None of the information contained in it is accurate (to my knowledge) however it works to play with for a bit. Every page you interact with (when adding items and such) puts information into a MySQL db, but as it moves through, you can't hit the pages doing the work. HTH, Robert ----- Original Message ----- From: Dre <[EMAIL PROTECTED]> Date: Saturday, September 4, 2004 1:35 pm Subject: [PHP] Clean variables sent from forms > Hi, > > I'm trying to perform a database insertion for a new record from > data I > receive from a HTML form > > I send the data to the file containing the insertion script and > insert the > values using the $_POST['variable_name'] > > every thing works fine, and the record get inserted correctly > > the problem is when I refresh this page (the one containing the > databaseinsertion script) a new record with the same data is > inserted in the same > table > (I'm using an auto increamented id for this table) .. > > I was wondering if there is a way that I can delete all values > sent from the > form after the first insertion successeded > Thanks in advance > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php