Hi there,
I wish to have a PHP form for which users enter thier name and email address. On clicking submit the form checks for any empty fields or erraneous email address (without the @ for example). If validation is OK, then sends to my email.
I have no idea about how to go about the validation in PHP, my code for the form is here:
If any one could help id be very greatful. Thankyou.
I wish to have a PHP form for which users enter thier name and email address. On clicking submit the form checks for any empty fields or erraneous email address (without the @ for example). If validation is OK, then sends to my email.
I have no idea about how to go about the validation in PHP, my code for the form is here:
Code:
<?php $msg .= "Full name : ".$_POST["Name"]."\n"; $msg .= "Other Info : ".$_POST["textfield"]."\n"; $recipient = "<email removed>"; $subject = "My Form"; $mailheaders = "From: NeunieFlicks.com <email removed> \n"; mail($recipient, $subject, $msg, $mailheaders); ?>
Comment