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

rating

Enforce unique email in registration page

Thread began 3/03/2012 10:17 am by Paul | Last modified 4/17/2012 10:05 am by Jason Byrnes | 1835 views | 13 replies |

PaulBeta Tester

Enforce unique email in registration page

I have used DA v2.1.0 (in DWCS5.5) to build a registration/insert page.

I want unique email addresses only. What do I need to do to achieve this?

Thanks, Paul.

Sign in to reply to this post

Ian S

Two options....

Do a recordset lookup and the entered email address and check to see if the returning results are empty....

... or use the Unique Column Value Validation in Security Assist if you own it.

Cheers
Ian

Sign in to reply to this post

PaulBeta Tester

Thanks for reply Ian.

Before i try a recordest and some validation, i'm interested in using SA.

I have SA v2.0.4, but not sure where that feature is you mention.
Any Ideas?

Thanks,

Sign in to reply to this post

Ian S

One of the Server Validation options should be Unique Database Value

You can then validate your email address field in the form against a field in a database table.

Server Behaviours > Web Assist > Validation Toolkit >

Hope this helps?

Cheers
Ian

Sign in to reply to this post

PaulBeta Tester

Well the closest Server Validation I can see is 'Like Entry'.

So using that that;

I've created a 'Validation Show If' server behaviour with the above Validation in the 'Validation Pass' option. I assume this, because if a match (or dupe) has been found in the DB, then i want the behaviour to show an image in my form.

However, its not doing that!

Sign in to reply to this post

Ian S

To have the Unique Database Value you must install Security Assist 2.04 as your very last extension.

Cheers
Ian

Sign in to reply to this post

evansg7124312885

You guys are on the path to my problem

I have Sec Assist 2, latest version, trying to apply any server validations is triggering an error at creation.

The Unique Database Entry is critical for 2 pages I am trying to write, but applying any server level validation is triggering the same problem. I keep getting pinged with a Java error every time I click "OK". Looks like a pretty easy problem when you know where to look.

Even when I try validating something like "email address", when I click OK; I get errors.

I am using Dreamweaver 5.5, Mac OS 10.7.3, this function appears unique to Security Assist 2, I am using version 2.0.4.

Would love some input here, let me know;

Gary Evans

Sign in to reply to this post

Jason ByrnesWebAssist

whenever you report that you are getting an error message, it is very important to also include the text of the error message, without knowing what the error message says, it is impossible to tell what the error message means.

have you tried Deleting the Dreamweaver Cache file from the users configuration folder:
common_installation_issues.pdf

this is the first step to take whenever you get java script error messages in dreamweaver.

Sign in to reply to this post

Ian S

Hi Gary,

Like Jason said, the contents of the error message could help to troubleshoot the issue, however, this sounds like a problem that I used to encounter that has been fixed with 2.05.

Might be worth downloading that and giving it another go?

Cheers
Ian

Sign in to reply to this post

evansg7124312885

Reply to Jason and Ian

Hello to both of you,

Ian, updating to 2.0.5 appears to have got me on a good track. I now see the screen that asks the questions that I expect to answer to use this validation. Two questions I need to ask that came up in use are:
1: What is the difference between the "Key" column and the "Unique" column. I was not clear in what the text that appears between the 2 was trying to tell me. The table we are working in has an auto increment numeric UserID field and a "unique" requirement on the field of user_email addresses. Can you clarify which field goes where in the validation setup?

2: Redirect page: I can't find in the GSGs how to reroute back to page and set parameters for failed entries. Can you point me to the instructions for failed updates and invalid entries and how to set up the show if behaviors for either instance?

Jason,

Sorry for forgetting that part. There is no file reference, only a java error. I have attached the screen shot of what I am seeing.

I have cleared the cache, that is usually my first stop when an error shows up. I then ran again, no change in problem.

Thanks to both of you for the quick responses.

Sign in to reply to this post
loading

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

Content

rating

Layout

rating

Ease of use

rating

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...