Jump to content

dashes in email address rejected at checkout


Guest 4thgear

Recommended Posts

Guest twisted

This is the code in customers.php that determines which characters are "Allowed" in email addresses.

"// make sure email was entered or valid

if ((!ereg("^[a-zA-Z0-9_.]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $email))or(empty($email)))"

As you canb see...dashes are permitted...so in short..............no idea.

You might try changing this:

if ((!ereg("^[a-zA-Z0-9_.]


to this:


if ((!ereg("^[a-zA-Z0-9_.\-]

And yes, the dash has to be escaped with a \

HTH

Link to comment
Share on other sites

Guest twisted

I smetiems think that some things should go without saying,,,but I should know better.

I implied that the code I posted should be corrected wherever it occurs. :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...