Prova cosi:
Codice PHP:if (!validEmail($Email)) {
$what3 = "contacts.php?msg=the email is incorrect&name=".$_REQUEST['Name']."&company=".$_REQUEST['Company']."&email=".$_REQUEST['Email']."&phone=".$_REQUEST['Phone']."&country=".$_REQUEST['Country']."¬es=".$_POST['Notes'];
$what3 = rawurlencode(trim($what3));
header("Location: $what3");
}else{
$what2 = "contacts.php?msg=Please fill the mandatory fields, thank you&name=".$_REQUEST['Name']."&company=".$_REQUEST['Company']."&email=".$_REQUEST['Email']."&phone=".$_REQUEST['Phone']."&country=".$_REQUEST['Country']."¬es=".$_POST['Notes'];
$what2 = rawurlencode(trim($what2));
header("Location: $what2");
}

Rispondi quotando