Page 2 of 2

Re: email validation error

Posted: Sat Apr 04, 2009 3:10 pm
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

Re: email validation error

Posted: Sat Apr 04, 2009 4:41 pm
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

Re: email validation error

Posted: Sat Apr 04, 2009 5:19 pm
by angelic_devil
oops i already edited it n didnt save the older one.

Re: email validation error

Posted: Sat Apr 04, 2009 7:41 pm
by RobertGonzalez
Undefined variable means you are using a variable that you have not declared or initialized yet.

Re: email validation error

Posted: Sat Apr 04, 2009 8:23 pm
by angelic_devil
i figured out the issue... its working perfectly fine...i just had to rewrite the whole script again.

Re: email validation error

Posted: Wed Apr 08, 2009 1:13 pm
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...

Re: email validation error

Posted: Thu Apr 09, 2009 2:19 am
by angelic_devil
problem solved....i just re wrote the script in a different way.