Hello there, I've got this script which works completely except for the radio thing. In the end of the script it describes the email which is to be send. But in the email it doesnt display somehow.. Can anyone help me? Thanks! Sorry.. the code: <html> <head><title></title> </head> <body style="background-color: transparent;"> <? // is niet 100% !!! function checkmail($mail) { $email_host = explode("@", $mail); $email_host = $email_host['1']; $email_resolved = gethostbyname($email_host); if ($email_resolved != $email_host && eregi("^[0-9a-z]([-_.~]?[0-9a-z])*@[0-9a-z]([-.]?[0-9a-z])*\\.[a-z]{2,4}$",$mail)) $valid = 1; return $valid; } // geef e-mail adres op van ontvanger $mail_ontv = "lisette@zietuwel.nl"; // als er niet op submit is gedrukt, of als er wel op is gedrukt maar niet alles ingevoerd is if (!$_POST['submit'] || $_POST['submit'] && (!$_POST['naam'] || !$_POST['mail'] || !checkmail($_POST['mail']) || !$_POST['adres'] )) { if ($_POST['submit'] && (!$_POST['naam'] || !$_POST['mail'] || !checkmail($_POST['mail']) || !$_POST['adres'] || !$_POST['telnummer'])) { echo "<font face=\"Myriad Web Pro,Arial\" size=\"2\">U bent uw naam, e-mail adres of bericht vergeten in te vullen. Ook kan het zijn "; echo "<font face=\"Myriad Web Pro,Arial\" size=\"2\">dat u een verkeerd e-mail adres heeft ingevuld.<p>"; } // form + tabel echo "<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">"; echo "<form method=\"POST\" ACTION=\"" . $_SERVER['PHP_SELF'] . "\">"; // naam echo "<tr><td><font face=\"Myriad Web Pro,Arial\" size=\"2\">Naam en voorletter(s):</td></tr>"; echo "<tr><td><input type=\"text\" name=\"naam\" value=\"" . $_POST['naam'] . "\"></td></tr>"; // space echo "<tr><td> </td></tr>"; // adres echo "<tr><td><font face=\"Myriad Web Pro,Arial\" size=\"2\">Adres:</td></tr>"; echo "<tr><td><input type=\"text\" name=\"adres\" value=\"" . $_POST['adres'] . "\"></td></tr>"; // space echo "<tr><td> </td></tr>"; // bedrijfsnaam echo "<tr><td><font face=\"Myriad Web Pro,Arial\" size=\"2\">Bedrijfsnaam:</td></tr>"; echo "<tr><td><input type=\"text\" name=\"bedrijfsnaam\" value=\"" . $_POST['bedrijfsnaam'] . "\"></td></tr>"; // space echo "<tr><td> </td></tr>"; // mail echo "<tr><td><font face=\"Myriad Web Pro,Arial\" size=\"2\">E-mail adres:</td></tr>"; echo "<tr><td><input type=\"text\" name=\"mail\" value=\"" . $_POST['mail'] . "\"></td></tr>"; // space echo "<tr><td> </td></tr>"; // telefoonnummer echo "<tr><td><font face=\"Myriad Web Pro,Arial\" size=\"2\">Telefoonnummer:</td></tr>"; echo "<tr><td><input type=\"text\" name=\"telnummer\" value=\"" . $_POST['telnummer'] . "\"></td></tr>"; // space echo "<tr><td> </td></tr>"; // mobiele nummer echo "<tr><td><font face=\"Myriad Web Pro,Arial\" size=\"2\">Mobiele nummer:</td></tr>"; echo "<tr><td><input type=\"text\" name=\"mobiel\" value=\"" . $_POST['mobiel'] . "\"></td></tr>"; // space echo "<tr><td> </td></tr>"; // soort bedrijf echo "<tr><td><font face=\"Myriad Web Pro,Arial\" size=\"2\">Soort bedrijf:</td></tr>"; echo "<tr><td><font face=\"Myriad Web Pro,Arial\" size=\"2\"><input type=\"radio\" name=\"test\" value=\"" . $_POST['soortbedrijf'] . "\">Kweker</td></tr>"; echo "<tr><td><font face=\"Myriad Web Pro,Arial\" size=\"2\"><input type=\"radio\" name=\"test\" value=\"" . $_POST['soortbedrijf'] . "\">Broeier</td></tr>"; echo "<tr><td><font face=\"Myriad Web Pro,Arial\" size=\"2\"><input type=\"radio\" name=\"test\" value=\"" . $_POST['soortbedrijf'] . "\">Bollentelen</td></tr>"; echo "<tr><td><font face=\"Myriad Web Pro,Arial\" size=\"2\"><input type=\"radio\" name=\"test\" value=\"" . $_POST['soortbedrijf'] . "\">Exporteur</td></tr>"; echo "<tr><td><font face=\"Myriad Web Pro,Arial\" size=\"2\"><input type=\"radio\" name=\"test\" value=\"" . $_POST['soortbedrijf'] . "\">Anders nl,</td></tr>"; echo "<tr><td><font face=\"Myriad Web Pro,Arial\" size=\"2\"><input type=\"text\" name=\"anders\" value=\"" . $_POST['anders'] . "\"></td></tr>"; // space echo "<tr><td> </td></tr>"; // button echo "<tr><td><input type=\"submit\" name=\"submit\" value=\"Versturen\"></td></tr>"; // sluit form + tabel echo "</form>"; echo "</table>"; } // versturen naar else { // set datum $datum = date("d.m.Y H:i"); // set ip $ip = $_SERVER['REMOTE_ADDR']; $inhoud_mail = "===================================================\n"; $inhoud_mail .= "Nieuw bericht\n"; $inhoud_mail .= "===================================================\n\n"; $inhoud_mail .= "Naam: " . $_POST['naam'] . "\n"; $inhoud_mail .= "Adres: " . $_POST['adres'] . "\n"; $inhoud_mail .= "Bedrijfsnaam: " . $_POST['bedrijfsnaam'] . "\n"; $inhoud_mail .= "E-mail: " . $_POST['mail'] . "\n"; $inhoud_mail .= "Telefoonnummer: " . $_POST['telnummer'] . "\n"; $inhoud_mail .= "Mobiele nummer: " . $_POST['mobiel'] . "\n"; $inhoud_mail .= "Soort bedrijf: " . $_POST['soortbedrijf'] . "\n"; $inhoud_mail .= "Ander bedrijf: " . $_POST['anders'] . "\n"; $inhoud_mail .= "Verstuurd op $datum via het ip " . $ip . "\n\n"; $inhoud_mail .= "===================================================\n\n"; // -------------------- // spambot protectie // ------ // van de tutorial: http://www.phphulp.nl/php/tutorials/10/340/ // ------ $headers = "From: " . $_POST['naam'] . " <" . $_POST['mail'] . ">"; $headers = stripslashes($headers); $headers = str_replace("\n", "", $headers); // Verwijder \n $headers = str_replace("\r", "", $headers); // Verwijder \r $headers = str_replace("\"", "\\\"", str_replace("\\", "\\\\", $headers)); // Slashes van quotes $_POST['onderwerp'] = str_replace("\n", "", $_POST['onderwerp']); // Verwijder \n $_POST['onderwerp'] = str_replace("\r", "", $_POST['onderwerp']); // Verwijder \r $_POST['onderwerp'] = str_replace("\"", "\\\"", str_replace("\\", "\\\\", $_POST['onderwerp'])); // Slashes van quotes mail($mail_ontv, $_POST['onderwerp'], $inhoud_mail, $headers); echo "<font face=\"Myriad Web Pro,Arial\" size=\"2\">Uw e-mail is verstuurd"; echo "<p><font face=\"Myriad Web Pro,Arial\" size=\"2\">Bedankt voor uw bericht. U zult snel een antwoord "; echo "<font face=\"Myriad Web Pro,Arial\" size=\"2\">krijgen indien dit nodig is.</p>"; } ?> </body> </html>