|
Peppergal -> Validating an Email address Form Field (3/21/2008 11:59:37)
|
I've had issues with people not knowing to put an email address in the form field - even though it clearly says "Email Address." If someone fills in the form without their email address, or if they don't put the @whatever.com (believe it or not, some people have just put their username without the rest of the address) there is no way for me to contact them. This form is voluntary, if they want to be contacted by us....it's not required, so it's important that they tell us how to contact them. I tried validating the email address form field so that the form will only go through if the user puts in an actual email address. If i put the @ sign under "other" , then if there is a dash, underscore, or period in the email address, the form won't go through, as it says only the @ , letters, and digits are allowed....a period or underscore or dash will make it not allowed. If I put @ . - _ in the "other" field, it seems to let ANYTHING go through, even if there are none of those characters. I'm at a loss on how to validate this so that only something with a proper email address format goes through. The form I'm trying to validate is this one: http://www.paupackgroup.com/sell.htm I even had one email address come through as "Hawley, PA" It is surprising but true. LOL
|
|
|
|