October 8, 201313 yr Ok, now this is probably going to be something really simple, but I can't fix it. On http://zebel-textiles.com/ the contact form is not working, it's driving me crazy. I've tried rearranging the submit-form.php file, and making a new one. Seems to be something to do with the jquery. Note: This is the work of another designer, I just did some small design changes for a client and they've asked me to fix this, which I can't seem to do! Any help would be appreciated! Thanks!
October 8, 201313 yr you have an internal server error in submit-form.php, can you post up the file so i can debug
October 8, 201313 yr Author Thank you so much! <?php // if the url field is empty if(isset($_POST['url']) && $_POST['url'] == ''){ // put your email address here $youremail = 'info@zebel-textiles.com'; // prepare message $body = "ZEBEL Textiles : Name: $_POST[name] Email: $_POST[email] Subject: $_POST[subject] Message: $_POST[message]"; if( $_POST['email'] && !preg_match( "/[\r\n]/", $_POST['email']) ) { $headers = "From: $_POST[email]"; } else { $headers = "From: $youremail"; } mail($youremail, 'Message from ZEBEL', $body, $headers ); } ?> <!DOCTYPE HTML> <html> <head> <title>Thanks!</title> </head> <body> <p>Message Sent Successfully.</p> </body> </html>
October 8, 201313 yr try the following <?php // if the url field is empty if(isset($_POST['url']) && $_POST['url'] == ''){ // put your email address here $youremail = 'info@zebel-textiles.com'; // prepare message $body = "ZEBEL Textiles : Name: ".$_POST['name']." Email: ".$_POST['email']." Subject: ".$_POST['subject']." Message: ".$_POST['message']; if( $_POST['email'] && !preg_match( "/[\r\n]/", $_POST['email']) ) { $headers = "From: ".$_POST['email']; } else { $headers = "From: $youremail"; } mail($youremail, 'Message from ZEBEL', $body, $headers ); } ?> <!DOCTYPE HTML> <html> <head> <title>Thanks!</title> </head> <body> <p>Message Sent Successfully.</p> </body> </html> Edited October 8, 201313 yr by D4Y0
October 8, 201313 yr Author Fixed it! Thank you for your help, greatly appreciated! Turned out to be a 'M' missing from my server settings.....Yeah I feel like an idiot.... But oh well it's on at least
Create an account or sign in to comment