Check for duplicates?

I'm making a forum where people can signup for an email forwarder. I'm wondering if there's a way to make the script check the database it's writing to see if what's entered in the 'desiredname' field already exists in the database table, if so to give an error and try another name.

If I can get this to work, this script will be a HUGE timesaver.

thanks in advance for any info,
Shaun

By Anonymous on

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Check for duplicates?

Oops, I ment form. I'm using the phpmailerform.

It's writing the data to the DB and emailing. I'm just still trying to figure out how to make the process check the table in the 'desiredname' column for an exisiting entry.

Still no luck yet :(

Any suggestions?

Stalk me!

Drupal Association Member