Clean variables sent from forms

From: Date: Sat, 04 Sep 2004 17:35:43 +0000
Subject: Clean variables sent from forms
Groups: php.general 
Request: Send a blank email to php-general+get-195864@lists.php.net to get a copy of this message
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 database insertion 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

« previous php.general (#195864) next »