close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Unique Email validation allows two identical entries

Thread began 3/20/2016 3:21 pm by Paul | Last modified 3/21/2016 4:20 pm by Ray Borduin | 1101 views | 3 replies |

PaulBeta Tester

Unique Email validation allows two identical entries

I am using the latest ver of DB in CS6 to setup a basic registration system.

Problem:
Despite selecting unique email validation in the setup wizard, two identical email addresses can be inserted.
However, any further attempts to register with same email are prevented. It seems to validate only after the second attempt.

This issue affects all email addresses.

Observations:
A record only appears to be inserted if it is adjacent to its duplicate in my sql table, In other words if i attempt to register a duplicate one after the other.

Where if i attempt to register an email, say two or more records after the duplicate in my sql table, the validation works and rejects the entry.

Example insert table:

id email
-- -------
1 email1@host.com
2 email1@host.com --- not rejected by validation
3 email2@host.com
4 email3@host.com
5 email4@host.com
{6 email2@host.com --- will be rejected by validation}

affected .php file attached.

Any thoughts?

Sign in to reply to this post

Ray BorduinWebAssist

Leave the key value field set to 0 in the key value field validation UI.

Sign in to reply to this post
Did this help? Tips are appreciated...

PaulBeta Tester

Thanks ray - appreciated the heads up.
That seems to have resolved it - got spot!

Sign in to reply to this post

Ray BorduinWebAssist

That field is there to allow it to work on update pages where the current record would not be considered a repeat since it is the same record.

Sign in to reply to this post
Did this help? Tips are appreciated...

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