I am entering value in textbox (“name”) on form. Now name field in
database is having ‘unique’ constraint on it so that no 2 records with
same name allowed in database. Now when I m trying to enter same name
into database from my form I m getting following error.
Mysql::Error: #23000Duplicate entry ‘Prashant’ for key 2: INSERT INTO
password) VALUES(‘Prashant’, ‘Twiari’)
Instead of this error I want the Proper message should be displayed on
same page (“Form page”) with name textbox highlighted. How to do that?
Also How to check presence of particular field value against the value I
ve entered in form so that I can authenticate user for logging in?
Please tell me .
Thanx in advance.