Another validation question

Dewey Howell
Sun, 04 Sep 2005 02:23:23 -0000

I want to prevent people from adding patient into the database with
the first_name and last_name reversed when it already exists in the
database.

E.g -

First user correctly adds "Cindy Tompkins" to the database

Second user attempts to add "Tompkins Cindy" because he mixes up the
last_name and first_name fields on the form and didn''t notice that the
person was already added to the database.

-----------------------

This scenario happens frequently because some people naturally think
"Last Name first" and others "First Name first" and there
will be
inconsistencies despite clear instructions on the page.

How do I use validate to prevent this?

Thanks,
Dewey