nope thts not working
i changed it a bit
just tell me if the pattern is right or not
i want it to validate mail ids like
god@gmail.com
god@gmail.org
god@gmail.net
god@gmail.co.in
email validation error
Moderator: General Moderators
-
angelic_devil
- Forum Commoner
- Posts: 74
- Joined: Thu Apr 02, 2009 7:05 am
-
angelic_devil
- Forum Commoner
- Posts: 74
- Joined: Thu Apr 02, 2009 7:05 am
Re: email validation error
i made some changes to the add_user.php....plz check someone...it gives me a error
Notice: Undefined variable: emailid in D:\wamp\www\php_stockphotos\new_user.php on line 35
Warning: ereg() [function.ereg]: REG_BADRPT in D:\wamp\www\php_stockphotos\new_user.php on line 35
y m i getting this error
Notice: Undefined variable: emailid in D:\wamp\www\php_stockphotos\new_user.php on line 35
Warning: ereg() [function.ereg]: REG_BADRPT in D:\wamp\www\php_stockphotos\new_user.php on line 35
y m i getting this error
-
angelic_devil
- Forum Commoner
- Posts: 74
- Joined: Thu Apr 02, 2009 7:05 am
Re: email validation error
oops i already edited it n didnt save the older one.
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: email validation error
Undefined variable means you are using a variable that you have not declared or initialized yet.
-
angelic_devil
- Forum Commoner
- Posts: 74
- Joined: Thu Apr 02, 2009 7:05 am
Re: email validation error
i figured out the issue... its working perfectly fine...i just had to rewrite the whole script again.
- n00b Saibot
- DevNet Resident
- Posts: 1452
- Joined: Fri Dec 24, 2004 2:59 am
- Location: Lucknow, UP, India
- Contact:
Re: email validation error
would suggest testing out using a canned input to test your script... setup inputs yourself and see what gives... echo's are good for debug or a debugger can help if you are into them...
-
angelic_devil
- Forum Commoner
- Posts: 74
- Joined: Thu Apr 02, 2009 7:05 am
Re: email validation error
problem solved....i just re wrote the script in a different way.