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.

Please help this is driving me nuts!

Featured Replies

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!

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

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 by D4Y0

  • 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

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.