Re: Clean variables sent from forms
| From: | Jason Davidson | Date: | Sat, 04 Sep 2004 17:43:07 +0000 |
| Subject: | Re: Clean variables sent from forms | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-195866@lists.php.net to get a copy of this message | ||
Make some field unique, so it wont work.... thats an easy solution,
there other ways..
Jason
"Dre" <dre00x@yahoo.com> wrote:
>
> 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
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>