You could use a SESSION variable called for instance 'SUBMIT_TO_DB'. After submitting to the database, you simply set this variable 'SUBMIT_TO_DB' to 'NO'... The next time the page is reloaded, you won't have to submit one more time to the database, provided you check whether 'SUBMIT_TO_DB' is 'NO'. And opposite: if it is not set, you SHOULD do the submission to DB.
My $0.02 Eivind -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php