|There's more than one way to do things|
OT: eregi deprecatedby ilottl (Novice)
|on Mar 16, 2013 at 02:13 UTC||Need Help??|
ilottl has asked for the
wisdom of the Perl Monks concerning the following question:
I have a site with a contact for which has..if (email_is_valid($youremail) && !eregi("\r",$youremail) && !eregi("\n",$youremail) && $yourname != "" && $yourmessage != "" && substr(md5($user_answer),5,10) === $answer)
The site was upgraded to php 5.3 and now users received a deprecated warning....
I know its not perl, but can someone advise what the code should now be......
I have no idea and have tried to change with pregmatch directly but fail...miserably