Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Error when sending form

Featured Replies

  • 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.

  • 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>";
?>

 

  • Author

since its been live nothing has changed, it is hosted via 123reg. and if i remove the error section contact form works

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.