close ad
Help us test the new Databridge BETA with MySQLi support
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

WA Server Validations - Alphanumeric Validation Not Working

Thread began 9/17/2012 10:57 am by dlovas275157 | Last modified 9/17/2012 1:53 pm by dlovas275157 | 944 views | 2 replies |

dlovas275157

WA Server Validations - Alphanumeric Validation Not Working

On my registration form I have added the following server validations:

Email Address - required
Entry Length - Password must be 9 characters
Alphanumeric - Password must contain letters/numbers
Like Entry - Password and Confirm Passowrd entries must match.

All work except for the Alphanumeric Validation. FOr ex: If I enter a password of 123456789 it will pass, but should not since it is not alphanumeric.

Attached is my code. Please advise what I am doing wrong.

Thanks for any assistance.

-Daniel

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

Jason ByrnesWebAssist

alpha numeric does not enforce both letters and numbers. it only enforces that the entry is does not contain characters that are not letters or numbers.

your entry:
123456789

passes, because there are no none alpha numeric characters.


the validation is woking as expected.


to force at least one number and one letter in the string, you would need to use a regular expression validation:

/[a-zA-Z]\d|\d[a-zA-Z]/
Sign in to reply to this post

dlovas275157

Jason,

That worked perfectly!. Thank you for the prompt reply.

-Daniel

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