Re: Form trouble
| From: | Chris Boget | Date: | Mon, 25 Nov 2002 20:29:09 +0000 |
| Subject: | Re: Form trouble | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-125989@lists.php.net to get a copy of this message | ||
> When the form is submitted check the database with the info that is
> being submitted. If a record matches the data being submitted then don't
> do the insert. If there is not a record there, then insert the record..
Either that or, if you are using mySQL, instead of using "INSERT INTO..."
use "REPLACE INTO...". Though, there are a few cases where this might
not work. Read the docs on "REPLACE".
Chris