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.

PHP advice

Featured Replies

Hi all heres my php

 

<?php

$to = "myemail@mydomain.com";
$re = "Website Feedback";

$your_company = $_GET['company'];
$your_name = $_GET['name'];
$your_phone = $_GET['phone'];
$your_email = $_GET['email'];
$your_message = $_GET['message']; 

$subject = "From" . $email;
$headers .= 'Content-type: text/html; charset=iso-8859-1';

$content = "<html><head><title>Contact Us</title></head><body><br>";
$content .= "Company: <b>" . $company . "</b><br>";
$content .= "Name: <b>" . $name . "</b><br>";
$content .= "Phone: <b>" . $phone . "</b><br>";
$content .= "E-mail: <b>" . $email . "</b><br><hr><br>";
$content .= $message;
$content .= "<br></body></html>";

mail($to,$subject,$content,$headers);
?>

 

which looks ok and the email it send is set out just fine but!!!

 

when the mail does come thorugh it shows like below:

 

Company:

Name:

Phone:

Email

Message:

 

yes thats right nothing else on it. So what have i done worng and what do i need to put in in order for the inout fields filled by the customer to show in the email???

 

Also when the email arrives it just shows "From" and doesnt exactly say who its from help on this matter too would be appreictaed.

 

Cheers

 

Lee

you tranfer your get variables to $your_something than you put them in the mail as $something

 

you forgot the your_

  • Author

so i put your_ bit in but no on email at all....

 

HELP!!!

<?php

$to = "myemail@mydomain.com";
$re = "Website Feedback"

$your_company = addslashes($_GET['company']);
$your_name = addslashes($_GET['name']);
$your_phone = addslashes($_GET['phone']);
$your_email = addslashes($_GET['email']);
$your_message = addslashes($_GET['message']); 

$subject = "From" . $your_email;
$headers .= 'Content-type: text/html; charset=iso-8859-1';

$content = "<html><head><title>Contact Us</title></head><body><br>";
$content .= "Company: <b>" . $your_company . "</b><br>";
$content .= "Name: <b>" . $your_name . "</b><br>";
$content .= "Phone: <b>" . $your_phone . "</b><br>";
$content .= "E-mail: <b>" . $your_email . "</b><br><hr><br>";
$content .= $your_message;
$content .= "<br></body></html>";

mail($to,$subject,$content,$headers);
?>

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.