B
Bob N
Guest
i made a form to collect emails and names.
it used to send me an email with the details, but not any more
heres the code:
<?php
if (!($name && $email)) {echo "You must complete the form to send it. press back and try again."; }
else {
$name = $_POST['name'];
$email = $_POST['email'];
$to = "myemailaddress";
$headers = "From: ".$email. "\r\n";
$subject = "Submitted application";
$msg = $name . " has sumitted a form!\r\n";
$msg .= "email address: " . $email . "\r\n";
mail($to, $subject, $msg, $headers);
echo ("");
}
?>
why doesnt it work anymore?
is there a way i can append the info to a .php file or something instead?
it used to send me an email with the details, but not any more

heres the code:
<?php
if (!($name && $email)) {echo "You must complete the form to send it. press back and try again."; }
else {
$name = $_POST['name'];
$email = $_POST['email'];
$to = "myemailaddress";
$headers = "From: ".$email. "\r\n";
$subject = "Submitted application";
$msg = $name . " has sumitted a form!\r\n";
$msg .= "email address: " . $email . "\r\n";
mail($to, $subject, $msg, $headers);
echo ("");
}
?>
why doesnt it work anymore?
is there a way i can append the info to a .php file or something instead?