if ($_POST['submit']){ if($_POST['email'] == 'E-mail' || !$_POST['email'] || $_POST['email'] < 5) { die ("Error! : No email entered<br><a href=\"javascript: history.back(-2)\">back</a>"); } }
is there anyway i can get something that checks to see if there is an '@' symbol and a '.' in the $_POST['email'] variable, and if @ or . is not in the variable, then kill the script?
i know you can use str_replace() to look for a specific piece of text, then change it and output a new varialbe, i want to just check an email address box to see if they have it semi-correctly filled out, and if not, the die and give the option to go back
is that even possible?