Hi,
I have made a contact form for my web site and when
it is sent it should go to my e-mail. The form works, just not consistantly.
Can you take a look at it and tell me what needs to be changed?
I don't get how it can work sometimes and then not other times.
Thanks,
Code:if (isset($_REQUEST['txteMail'])) {//if "email" is filled out, proceed //check if the email address is invalid $mailcheck = spamcheck($_REQUEST['txteMail']); if ($mailcheck==FALSE) { echo "Invalid input"; } else { //send email $to = 'someone@cox.net' . ',' ; // note the comma $to .= 'someone@yahoo.com'; $subject =($_REQUEST['txtSubject']); $message =($_REQUEST['txtName']) . "\r "; $message .=($_REQUEST['txtLName']) . "\r\n"; $message .=($_REQUEST['txtMsg']) . "\r\n"; $message .= "Checked Boxes: " . $products_msg ."\n"; $headers =($_REQUEST['txteMail']); //mail($to, $subject, $message, $headers); mail($to, $subject, $message, $headers ); }



Reply With Quote


Bookmarks