M
Mike Barnard
I'm no PHP wizard, nor do I know much about regexp, but for those who
are, this is the part in the script that seems to check the email
address:
// Check the email address enmtered matches the standard email address
format
if (!eregi("^[A-Z0-9._%-]+@[A-Z0-9._%-]+\.[A-Z]{2,6}$", $email)) {
echo "<p>It appears you entered an invalid email address</p><p><a
href='javascript: history.go(-1)'>Click here to go back</a>.</p>";
}
I'm not only not a wizard, I'm not even a sorceror's apprentice. But it
seems to me this regexp is overly sensitive to case. (It looks to me as
if it doesn't like lowercase characters in the address.)
Mike: what happens when you captilaize the entire e-mail address?
Or: what happens when you steal a different e-mail validity regex from
somewhere else on the Web?
I must admit I haven't tried different cases. I started with a known
working address. It failed, so I removed a . that was in the first
part. It still failed. I looked at the code, saw the erigi bit above
and shrugged my shoulders. Without taking php days of lessons I have
no idea of the syntax involved. What characters are a part of the
equasion, which are part of the data? I have looked up erigi, but I'm
no better off.
Thanks anyway.