Need required filed code for php code. I have look all over. Please use my

  • Thread starter Thread starter nextdoordecor08
  • Start date Start date
N

nextdoordecor08

Guest
code and add in what I'm missing.? <?php

if (isset($_POST['Send"]))

$emailSubject= 'Form1'
$webMaser="my email address"

$nameField = $_POST ['name'];
$emailField = $_POST ['email'];

$body = <<<EOD
Name: $nameField <br>
E-mail: $emailField <br>

$headers = "Form: $emailField\r\n";
$headers .= "Form-type: text/html\r\n";
$success = mail ("$webMaster", "$emailSubject", "$body", "$headers");

if ($success)
{
$msg ="Your message has been delivered"
}
else
{
$msg="your message has not been delivered"
}
}
?>
The last one was missing something please us this code:

<?php

if (isset($_POST['Send"]))

$emailSubject= 'Form1'
$webMaser="my email address"

$nameField = $_POST ['name'];
$emailField = $_POST ['email'];

$body = <<<EOD
Name: $nameField <br>
E-mail: $emailField <br>
EOD;

$headers = "Form: $emailField\r\n";
$headers .= "Form-type: text/html\r\n";
$success = mail ("$webMaster", "$emailSubject", "$body", "$headers");

if ($success)
{
$msg ="Your message has been delivered"
}
else
{
$msg="your message has not been delivered"
}
}
?>
 
Back
Top