email validation error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

angelic_devil
Forum Commoner
Posts: 74
Joined: Thu Apr 02, 2009 7:05 am

Re: email validation error

Post by angelic_devil »

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
angelic_devil
Forum Commoner
Posts: 74
Joined: Thu Apr 02, 2009 7:05 am

Re: email validation error

Post by angelic_devil »

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
angelic_devil
Forum Commoner
Posts: 74
Joined: Thu Apr 02, 2009 7:05 am

Re: email validation error

Post by angelic_devil »

oops i already edited it n didnt save the older one.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Re: email validation error

Post by RobertGonzalez »

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

Post by angelic_devil »

i figured out the issue... its working perfectly fine...i just had to rewrite the whole script again.
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Re: email validation error

Post by n00b Saibot »

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

Post by angelic_devil »

problem solved....i just re wrote the script in a different way.
Post Reply