close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

validating email - or allow blank entry

Thread began 9/17/2011 4:54 am by info97301 | Last modified 10/03/2011 10:37 am by Jason Byrnes | 1154 views | 3 replies |

info97301

validating email - or allow blank entry

Hi

I've successfully created a registration form (not using the built in version) - but in addition to the user name being unique, I also want the email address to be unique OR allow a blank entry.

When the form is submitted, my 'show if validation fails' text is displayed if the email address entry is blank (because there are other blank entries in the database) - how can I get it so that if an entry is made, it checks for 'unique-ness', but if blank, it ignores it.

Many thanks
Chris

Sign in to reply to this post

Jason ByrnesWebAssist

see this thread for details:
showthread.php?t=15535


the idea is to create a recordset to lookup the entered email address.

If the address is found, the number of rows returned will be 1 or more, so use numeric validation to make sure the number of rows returned in the record is 0. The recordset will still be empty if nothing is entered so it will allow a blank value.

Sign in to reply to this post

info97301

Hi Jason

Sorry for the delay in replying; unfortunately, that post refers to another that isn't linked.

Would the scenario be:

register page: initial validation, if validation of email address or username fails, the user is redirected to

register2 page - the entered email address is looked up in a recordset (not sure how that works with a blank entry - where email <>"" AND email = POST email ??)

Am I on the right lines?

Cheers

Chris

Sign in to reply to this post

Jason ByrnesWebAssist

the thread i linked to before:
showthread.php?t=15535

only has 2 posts in it, it does not link to any other thread.

I was directing you to the second post in that thread:
showpost.php?p=72364&postcount=2

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