November 8, 201312 yr Hey Guys On the following site www.coach-compare.co.uk when you complete the form it comes up with just Error! no other warning, anyone have any ideas why this is.
November 8, 201312 yr you are right it just says ERROR lolHave you got some code of the form processor? Did you write it yourself? or did you use some third party software?
November 8, 201312 yr Author i did create this, i created it about 6 months ago, it was working fine up until today. They last had a contact form at 4.40pm yesterday. i have the code at home, i am out on the road at the moment.
November 8, 201312 yr Author this is the code that has been working for months but stopped working last night <?php $fname = $_POST['fname']; $email = $_POST['email']; $telephone = $_POST['telephone']; $date = $_POST['date']; $collection = $_POST['collection']; $rcollect = $_POST['rcollect']; $seats = $_POST['seats']; $destination = $_POST['destination']; $interest = $_POST['interest']; $like = $_POST['like']; $time = $_POST['time']; $method = $_POST['method']; $tc = $_POST['tc']; // EMPTY FIELD CHECK if( (empty($tc)) ) { echo '<script>alert("The Terms & Conditions much be accepted to proceed..");</script>'; echo '<script>history.back(1);</script>'; exit; } /* EMPTY FIELD CHECK */ $formcontent = "From: $fname, \n Telephone: $telephone, \n Date: $date, \n Collection Point: $collection, \n Collection Time from destination: $rcollect, \n Number of Seats: $seats, \n Destination: $destination, \n Interested In: $interest, \n Would Like A: $like, \n Best Time To Call: $time, \n Pereferred Method: $method, \n T&C Accpetance: $tc"; $recipient = "triporganiser@coach-compare.co.uk"; $subject = "Contact Form from Website"; $mailheader = "From: $email \r\n"; mail($recipient, $subject, $formcontent, $mailheader)or die("Error!"); echo "Thank You someone will be in contact in 24 hours" . " - " . "<a href='index.html' style='text-decoration: none; color: #d03837;'>Return Home</a>"; ?>
November 11, 201312 yr What was the last thing you changed? where are you hosting it? maybe your hosting providor changed the mail settings?
November 11, 201312 yr Author since its been live nothing has changed, it is hosted via 123reg. and if i remove the error section contact form works
November 19, 201312 yr Author Still having a problem with this. I have removed the error part of the code above. I have tested via chrome and safari and it works fine email sent through, however on IE the form submits but nothing is going through to the inbox. any suggestions. thanks
Create an account or sign in to comment