In My script, i need to validate whether or not all the text boxes are filled out. And if they arent, i want some sort of message or for it to go back, it really doesnt matter to me as long as it doesnt send and i can echo a message saying something like please be sure to fill out all fields.
Also, i want in the From Section to Make sure the user puts the @ symbol in the textbox, because like i said, its an email form and if there isnt an @ symbol it says its from the website. so i just need the @ symbol to be there or else it echos something like please check your from email address
If it helps, my variables are:
$to
$subject
$message
$from
then in the part that actually sends, i have
$headers = "From: $from\r\n";
mail($to,$subject,$message,$headers);
$theresults = (the rest)
Tags: