close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Unique Database Value not working

Thread began 1/10/2013 3:48 am by info4753 | Last modified 1/11/2013 11:06 am by info4753 | 614 views | 4 replies |

info4753

Unique Database Value not working

I've created a registration form with SA and added the Unique Database Value validation for the E-Mailaddress.

The Validation is not working, users can still register with the same E-Mailaddress again. Please have a look at the attached file.

Thx for any help

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

Jason ByrnesWebAssist

when testing the registration page, are you logged in? if you are logged in, and try to test the registration page with the same email address as the one you are logged in as, i could see that happening.

to prevent this, edit the Unique database value validation, and instead of using the session for the Key column value, set it to 0

Sign in to reply to this post

info4753

I was not logged in.

But changing the value to "0" worked. But I dont' understand why "0" works.

Sign in to reply to this post

Jason ByrnesWebAssist

the session must have been set.

if the key is set to use the session, it will allow the email address that belongs to that session to be used. This is so you can update your registration with the same email address, but another user will not be able to create a registration with the same email address.

using 0 for the key value by passes the check to see if the email address belongs to the logged in user.

Sign in to reply to this post

info4753

Thank you Jason!

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