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.

Kyle Hudson MCP CCNA CIW

Members
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Kyle Hudson MCP CCNA CIW got a reaction from Faevilangel in PHP Error   
    Hi,
     
    I have totally rewritten your code and tested it.
     

    <?php header("Expires: Mon, 20 Dec 1998 01:00:00 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); $message = $_REQUEST["enquiry"]; $name = $_REQUEST["name"]; $phone = $_REQUEST["phone"]; $email = $_REQUEST["email"]; // optional $contents = <<<EOD Name: $name Phone: $phone Message: $message EOD; if (empty($phone) || empty($message) || empty($name)) { header("Location: http://www.garethgillman.co.uk/contact.php"); } else { if(!isset($email)) { $email = "webform@sglettings.co.uk"; } $headers = "From: $name <$email>\r\n" . "Reply-To: $email\r\n"; if(mail("info@sglettings.co.uk", "Contact Form Results", $contents, $headers)) { header("Location: /sent.php"); exit; } else { header("Location: /error.php"); exit; } } ?>
     
    Any issues let me know,
     
    Kyle

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.