Re: Validate a form entry against an existing entry.

From: Date: Sun, 18 May 2003 20:31:17 +0000
Subject: Re: Validate a form entry against an existing entry.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-148119@lists.php.net to get a copy of this message
Sp Computing wrote: > i have a test form with 1 form field and the data from the form field > is inserted into a mysql db. > > how do i make sure that no 2 same values can go into the database? I > want to validate it using PHP and not JavaScript or anything like > that. You can place an 'unique' requirement on the table-field. this way MySQL won't let you insert a non-unique value into that field. -Peter

« previous php.general (#148119) next »