close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Security Assist Registration Page Email Already Exists Validation Always Shows

Thread began 5/05/2010 8:11 pm by dlovas275157 | Last modified 5/06/2010 3:35 pm by Jason Byrnes | 2138 views | 3 replies |

dlovas275157

Security Assist Registration Page Email Already Exists Validation Always Shows

I have two issues with my registration page, and need help.

Problem 1:
In the SA Wizard I opted for the registration form to redirect to emailDupe.php if the email is already used. This does not seem to work. Instead the page reloads with the message "Duplicate Entry 'my@domain.com' for key 2.

Problem 2:
I created a rsEmailLookup to see if the email address in the form is already used min-1 max0 numeric validation. Then I wrapped an error message in a validation show if. BUT the error shows every time even if the email doesn't exist in the database.

Attached is my page code. Appreciate any help.

Attached Files
index.php.zip
Sign in to reply to this post

Jason ByrnesWebAssist

The behavior that is used to redirect to another page if the email already exists is the Dreamweaver Check New user Name behavior.

You cannot use both the Check new User Name and Validation toolkit to check the email address at the same time.

The validation toolkit behavior is being triggered first, and causing the first probelm you report, you will need to choose between one or the other, you can do both.


The issue with validation toolkit, is that the code for the recordset is at line 87 - 95, this is after the validation toolkit code. When validation toolkit is validating the recordset, it has not been created yet.
The validation code is at line 9 - 33, move that code black to line 99 so that it is after the record set is created.

Sign in to reply to this post

dlovas275157

Thanks Jason.

That worked!

Solution:
1. I remove the code for the "Check New Username" SB.
2. Moved my rs code for rsEmailLookup above the validation code.

In the end, I an just using WA Server Validation on the userEmail formfield.

Thanks again. Appreciate the prompt response too.

D.

Sign in to reply to this post

Jason ByrnesWebAssist

glad to hear it is working.

Sign in to reply to this post

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