dthomas31uk
Technical User
Hi, Have a webpage with a number of checkboxes on
As you can see they all start with negative values (in the checkboxes). How can I return values from the checkbox by email that the user has entered via email.
Have used the following from various form elements before as you can see from the code below, but this does not return any data from the form. Hope someone can point me in the right direction cheers guys.
<?
$option = $_POST["SalonVsPrices_Key"];
$email = $_POST["email"];
$message = $_POST["message"];
$date = date ("j m Y hh:mm", strtotime("now"));
$message = $_POST["message"];
$message = <<<EOF
Enquiry from $name \r\n
Email address: $email\r\n
Made on $date\r\n
who left the following message: \r\n
$message
EOF;
$to = "myemailaddress"; // To email address
$subject = "Enquiry from Athene Hair and Beauty Contact Page";
$headers = 'From: $to'. "\r\n" .
'Reply-To: $to' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
if(mail($to, $subject, $message, $headers))
{
header("Location: ContactResponse.html");
exit;
}
else
{
echo "error in mail";
};
As you can see they all start with negative values (in the checkboxes). How can I return values from the checkbox by email that the user has entered via email.
Have used the following from various form elements before as you can see from the code below, but this does not return any data from the form. Hope someone can point me in the right direction cheers guys.
<?
$option = $_POST["SalonVsPrices_Key"];
$email = $_POST["email"];
$message = $_POST["message"];
$date = date ("j m Y hh:mm", strtotime("now"));
$message = $_POST["message"];
$message = <<<EOF
Enquiry from $name \r\n
Email address: $email\r\n
Made on $date\r\n
who left the following message: \r\n
$message
EOF;
$to = "myemailaddress"; // To email address
$subject = "Enquiry from Athene Hair and Beauty Contact Page";
$headers = 'From: $to'. "\r\n" .
'Reply-To: $to' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
if(mail($to, $subject, $message, $headers))
{
header("Location: ContactResponse.html");
exit;
}
else
{
echo "error in mail";
};