ok thanks for the quick reply i am a noob in this :/
do you have anywhere a mail.php file that i can get with the basic script?
what i have is this (from another form) but i want to make a new one for the survey.
<?
$emailaddress = array(
'yoni@msn.com',
);
if ($_POST['submit'] == "Send Report") {
$email = array();
$email['message'] = "
<html>
<center>
<table border=0 cellpadding=0 cellspacing=0 width=100%>
<tr><td align=left><img border=0 src=\"http://kessous.com/vsatpic/Small.gif\"></td>
<td align=right><img border=0 src=\"http://kessous.com/vsatpic/logo1.JPG\"></td></tr></tr>
</table>
";
if ($_POST['maillist']) {
$email['message'] .= "
<img border=\"0\" src=\"http://msn.com/vsatpic/logo.jpg\" width=\"56\" height=\"37\">
<font face=\"Tahoma\" size=\"6\">Open Events</font></p>
";
foreach($_POST['maillist'] as $var) {
$email['message'] .= "
<table border=\"3\" cellspacing=\"0\" style=\"border-collapse: collapse\" width=\"95%\" id=\"table1\" bordercolor=\"#000000\">
<tr><td height=\"24\" width=\"6%\"><b><font face=\"Tahoma\" size=\"4\">Event open date:</font></b></td>
<td height=\"24\" width=\"23%\">".$_POST['Event_Open'][$var]."</td></tr>
<tr><td height=\"24\" width=\"6%\"><b><font face=\"Tahoma\" size=\"4\">Location:</font></b></td>
<td height=\"24\" width=\"23%\">".$_POST['location'][$var]."</td></tr>
<tr><td height=\"24\" width=\"6%\"><b><font face=\"Tahoma\" size=\"4\">Event:</font></b></td>
<td height=\"24\" width=\"23%\">".$_POST['Event'][$var]."</td></tr>
<tr><td height=\"24\" width=\"6%\"><b><font face=\"Tahoma\" size=\"4\">CRM Notes:</font></b></td>
<td height=\"24\" width=\"23%\">".nl2br(htmlentities($_POST['notes'][$var]))."</td></tr>
<tr><td height=\"24\" width=\"6%\"><b><font face=\"Tahoma\" size=\"4\">Status:</font></b></td>
<td height=\"24\" width=\"23%\">".nl2br(htmlentities($_POST['status'][$var]))."</td></tr></table>
";
}
}
if ($_POST['installing']) {
$email['message'] .= "
<br><br><br>
<img border=\"0\" src=\"http://msn.com/vsatpic/logo.jpg\" width=\"56\" height=\"37\">
<font face=\"Tahoma\" size=\"6\">RMA</font></p>
";
foreach($_POST['installing'] as $var) {
$email['message'] .= "
<table border=\"3\" cellspacing=\"0\" style=\"border-collapse: collapse\" width=\"95%\" id=\"table1\" bordercolor=\"#000000\">
<tr><td height=\"24\" width=\"6%\"><b><font face=\"Tahoma\" size=\"4\">RMA Open Date:</font></b></td>
<td height=\"24\" width=\"23%\">".$_POST['idate'][$var]."</td></tr>
<tr><td height=\"24\" width=\"6%\"><b><font face=\"Tahoma\" size=\"4\">Customer:</font></b></td>
<td height=\"24\" width=\"23%\">".$_POST['ilocation'][$var]."</td></tr>
<tr><td height=\"24\" width=\"6%\"><b><font face=\"Tahoma\" size=\"4\">RMA Ticket:</font></b></td>
<td height=\"24\" width=\"23%\">".$_POST['iticket'][$var]."</td></tr>
<tr><td height=\"24\" width=\"6%\"><b><font face=\"Tahoma\" size=\"4\">Phone:</font></b></td>
<td height=\"24\" width=\"23%\">".$_POST['iphone'][$var]."</td></tr>
<tr><td height=\"24\" width=\"6%\"><b><font face=\"Tahoma\" size=\"4\">Notes:</font></b></td>
<td height=\"24\" width=\"23%\">".$_POST['inotes'][$var]."</td></tr></table>
";
}
}
$email['message'] .= "
</center>
</html>
";
}
$email['sendname'] = "Yoni";
$email['subject'] = "VSat Daily Report";
$email['name'] = "VipSatTech";
$email['emeel'] = "vip@msn.com";
$header = "From: ".$email['name']." <".$email['emeel'].">\n";
$header .= "Reply-To: ".$email['name']." <".$email['emeel'].">\n";
$header .= "MIME-Version: 1.0\n";
$header .= "Content-Type: text/html; charset=WINDOWS-1255\n";
$header .= "X-Priority: 3\n";
$header .= "X-Mailer: PHP / ".phpversion()."\n";
//$header .= "Cc: \n";
$message = "".$email['message']."\n";
foreach($emailaddress as $emailtje) {
mail($emailtje, $email['subject'], $message, $header);
}
header("Location: [url]http://msn.com/index.html[/url]");
?>
so how should the one with the radio button look?
I hope you can help me with that one too thanks