Adding to custom form
-
HI
Im trying to add the authentication to a custom form
the verification code at the top is
//INITIALIZE VARIABLES $name_error = ''; $email_error = ''; $subject_error = ''; $message_error = ''; //GET CUSTOM THEME OPTIONS if (isset($_REQUEST['c_submitted'])) { if($_REQUEST['c_submitted']) { $c_name = trim($_REQUEST['c_name']); $c_email = trim($_REQUEST['c_email']); $c_subject = trim($_REQUEST['c_subject']); $c_message = trim($_REQUEST['c_message']); //SEND EMAIL IF THERE ARE NO ERRORS if($error != true) { $email_to =$queed_frontend_options['email_address']; $message_body = "Name: $c_name \n\nEmail: $c_email \n\nComments: $c_message"; $headers = "From: ".get_bloginfo('title')."\r\n" .'Reply-To: ' . $c_email; mail($email_to, $c_subject, $message_body, $headers); $email_sent = true; } } } ?>I’ve put the question into the form which displays fine but i’m not sure what to do with the error checking bit I added it but it it still sent the form
any suggestions?
cheers
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Adding to custom form’ is closed to new replies.