MX Kommerce Forum :: email validation help
This thread was displayed: 0 times
Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.
For more information about the affected products visit: www.interaktonline.com/Support/
stephen sutcliffe
03-05-2007 13:33:40 GMT +2
|
I've set up a registration page and also a contact us form but ive had an email from the contact us page stating that they cant register to my web site because her email address want be accepted as a valid email address.
zoe.o'sullivan@emailaddress.com
the problem is that she has a ' in here address.
So my question is can I set the validation code to allow this when validating.
I think if found the code but im unsure what part I need to change
validationRules("text")("email")("regexp") = "/^[\w\.-]+@[\w\.-]+\.\w+$/"
thanks for any help
Ste
|
|
|
Razvan Racasanu[InterAKT]
03-05-2007 14:09:36 GMT +2
|
Hello,
Try using this regexp:
"/^[\w\.-']+@[\w\.-]+\.\w+$/"
Regards,
Razvan RACASANU
|
|
|
stephen sutcliffe
03-05-2007 14:50:00 GMT +2
|
that did work for allowing this strange email address
i only tested it on the contact us page "its built of your contacts us form tuturials"
but now this happens when i submit the form
Microsoft VBScript runtime error '800a139d'
Invalid range in character set
/contact.asp, line 0
would you have any ideas on why this would happen ..its it goes away when i take it back off.
thanks again
|
|
|
Razvan Racasanu[InterAKT]
03-05-2007 18:12:13 GMT +2
|
Hello,
Please try with this line:
validationRules("text")("email")("regexp") = "/^[\w'\.-]+@[\w\.-]+\.\w+$/"
Regards,
Razvan RACASANU
|
|
|