|
Posted by Terry on 07/20/05 01:28
Stephanie wrote:
> Warning messages now within fieldset. (fixed)
>
> Still interested in validating email address (not validating if it exists,
> but if it's a valid syntax)
$email=eregi_replace("[^a-z0-9@\.\-_]*","",$email);
//replace any non valid characters with ""
if(!$email == "" && (!strstr($email,"@") || !strstr($email,".")))
{
echo $beginhtml,"e-mail ($email) is not a valid address, please correct
it or make sure it is blank.",$endhtml;
exit;
HTH
--
TK
http://www.wejuggle2.com/
Still Having a Ball
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet?
..
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----
Navigation:
[Reply to this message]
|