close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Unique Database value

Thread began 7/19/2013 9:09 am by stephen287384 | Last modified 7/22/2013 8:59 am by Jason Byrnes | 1463 views | 5 replies |

stephen287384

Unique Database value

I have a registration page built with validations however when i try and validate the email address against currently registered email addresses it does not work. The process i followed after reading several posts was:

1. In the server bahaviours tab click add > webassist > validations > server validations
2.
Validation trigger: Button: Registration_submit pressed
Validation Type: Unique Database Value
Server Variable: $_SESSION['SecurityAssist_UserID']

I can still register using the same email address as already registered in database, not sure where i am going wrong here, is there any detailed documentation on checking if a value already exists before processing registration?


Server Validation: Unique Database Value
Unique column: Email
Key Column: UserID
Key Value:<?php echo isset($_SESSION['SecurityAssist_UserID'])?$_SESSION['SecurityAssist_UserID']:"0"; ?>

Sign in to reply to this post

Jason ByrnesWebAssist

If there are already validations in place, you should not be adding a second server validation server behavior, you should editing the existing one to add the new unique database value validation.

open the server behaviors list, and double click the server validation behavior to edit it.

Sign in to reply to this post

stephen287384

Originally Said By: Jason Byrnes
  If there are already validations in place, you should not be adding a second server validation server behavior, you should editing the existing one to add the new unique database value validation.

open the server behaviors list, and double click the server validation behavior to edit it.  


Hi Jason,

yes tried that, it still allows duplicate emails to be registered.

Sign in to reply to this post

Jason ByrnesWebAssist

in the unique database value validation, you are using the SecurityAssist_UserID session variable for the Server Variable to validate, you should be using the email address form element.

Sign in to reply to this post

stephen287384

Originally Said By: Jason Byrnes
  in the unique database value validation, you are using the SecurityAssist_UserID session variable for the Server Variable to validate, you should be using the email address form element.  
Sign in to reply to this post

Jason ByrnesWebAssist

When do you get the invalid information error, when submitting the registration form?

you say the registration form is submiting to the pricing page? That would mean validation is passing?

please provide more details.

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