close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Check for duplicate email address as well as username (user registration)

Thread began 10/02/2009 4:01 pm by phil | Last modified 1/16/2010 11:30 am by phil | 11352 views | 23 replies

Jason ByrnesWebAssist

First you need to create a recordset to see if the email or username existst in the database.

If you want to be able to display a different message if the user name is already in the database, you need to create two recordset. One to check for the user name, one to check for the password.

crate the first recordset, named usernameLookup. Set it to filter the username column on the username form element.

Create the second recordset as emailLookup, Set it to filter the email column on the email form element.

Then add server validation. For the username, use Numeric validation. Set the server variable to "$totalRows_usernameLookup", set the minimum to -1 and the max to 0. same for the the email, use numeric validation. Set the server variable to "$totalRows_emailLookup" the minimum should be set to -1 and the max set to 0.

Setting the validation this way will check that either recordset is empty.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...