Non riesco a capire perchè ma ho un problema in uno script che dovrebbe prendere i dati dal form e inviarli in email.
Il fatto più strano è che non mi dia nessun errore e non mi segnala nemmeno se la mail è stata inviata o meno.
Vi posto lo script:
<?php
if(!isset($_POST)) $_POST = $HTTP_POST_VARS;
$email = trim(stripslashes($_POST["email"]));
$name = trim(stripslashes($_POST["name"]));
$surname = trim(stripslashes($_POST["surname"]));
$handle = trim(stripslashes($_POST["handle"]));
$service= trim(stripslashes($_POST["service"]));
$dobmonth = trim(stripslashes($_POST["dobmonth"]));
$dobday = trim(stripslashes($_POST["dobday"]));
$dobyear = trim(stripslashes($_POST["dobyear"]));
$address = trim(stripslashes($_POST["address"]));
$address2 = trim(stripslashes($_POST["address2"]));
$city = trim(stripslashes($_POST["city"]));
$state = trim(stripslashes($_POST["state"]));
$phone = trim(stripslashes($_POST["phone"]));
$cphone = trim(stripslashes($_POST["cphone"]));
$url = trim(stripslashes($_POST["url"]));
$zip = trim(stripslashes($_POST["zip"]));
$country = trim(stripslashes($_POST["country"]));
$gender = trim(stripslashes($_POST["gender"]));
$password = trim(stripslashes($_POST["password"]));
$password2 = trim(stripslashes($_POST["password2"]));
$mailinglist = trim(stripslashes($_POST["mailinglist"]));
$subject = "Street Team;
$mail_body .= "This is a Join Street Team Request from $name $surname\n\n";
$mail_body .= "Email = $email\n\n";
$mail_body .= "Handle = $handle\n\n";
$mail_body .= "Service = $service\n\n";
$mail_body .= "Date of Birth = $dobmonth $dobday $dobyear\n\n";
$mail_body .= "Address = $address\n\n";
$mail_body .= "Address2 = $address2\n\n";
$mail_body .= "City = $city\n\n";
$mail_body .= "State = $state\n\n";
$mail_body .= "Phone = $phone\n\n";
$mail_body .= "Mobile Phone = $cphone\n\n";
$mail_body .= "Url = $url\n\n";
$mail_body .= "zip = $zip\n\n";
$mail_body .= "Country = $country\n\n";
$mail_body .= "Gender = $gender\n\n";
$mail_body .= "Password = $password\n\n";
$mail_body .= "Retype Password = $password2\n\n";
$mail_body .= "Mailing List = $mailinglist\n\n";
if(@mail("fox80129@mail.com",$subject,$mail_body))
{
echo "Email submitted";
}
else
{
echo "impossible";
}
?>