I have a form that should send to my email address (as it has always done in the past with the same form), but for some reason it is not at all.
Is there something wrong with my code, or my hosting service. I have used this code before with the same hosting services for a while now.
if(isset($_POST['submit'])) {
$to = myemail@yahoo.com
$body = "";
foreach($_POST as $name => $value)
{
$body .= "$name: $value";
mail($to, $subject, $body);
}
}