Information Request Form$mailtoto = "christinaswain@gmail.com"; //who this email will finally go to $mailtosubject = "Fairy Dust Cakes Contact Request"; //what you want the subject of the email to be if ($submit) { //if they hit a submit button to get here if (!$name || !$email) { ?> Please hit the "back" button on your browser and make sure all required fields have been filed out. } else { ?> Thank you for contacting us, this website is a design sample only but design related questions will be responded to. //mail all this stuff MAIL( "$mailtoto", "$mailtosubject", " Name: $name\n Telephone: $phone\n Email: $email\n Questions and Comments: $questioncomment\n", "From: $email\nX-Mailer: PHP/" . phpversion() ); // end mail function } } else { ?> } ?> |