Hi everyone,
i'm looking for a php script to go with my email form that will ask a user to enter in the text they see from an image. Also in my logs i saw that my validate.php has been executed, so someone has entered in an email or just pressed submit and then been taken to validate.php but i didnt get any email.
here is the code i use to verify if the email address is valid:
if (!preg_match("/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/", $from))
{
echo "Invalid email address, please check and try again<a href='javascript:history.back(1);'> Click here to return</a></br>";
}
is it possible to add extra code that will log or even email me the info that was entered so i can see why i didn't get the email. some people might never return, so i want to log the data they entered, just in case the code didn't execute 100%.
hope you get what i mean and thanks in advance.
i'm looking for a php script to go with my email form that will ask a user to enter in the text they see from an image. Also in my logs i saw that my validate.php has been executed, so someone has entered in an email or just pressed submit and then been taken to validate.php but i didnt get any email.
here is the code i use to verify if the email address is valid:
if (!preg_match("/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/", $from))
{
echo "Invalid email address, please check and try again<a href='javascript:history.back(1);'> Click here to return</a></br>";
}
is it possible to add extra code that will log or even email me the info that was entered so i can see why i didn't get the email. some people might never return, so i want to log the data they entered, just in case the code didn't execute 100%.
hope you get what i mean and thanks in advance.
