Ik gebruik de onderstaande php code dus , deze code staat in een bestand dat verwerk.php heet.
waar zou ik de mailto regel neer moeten zetten ???
<?
include("config.inc");
$null = '';
$sw = $HTTP_POST_VARS['sw'];
$zt = $HTTP_POST_VARS['zt'];
$cat = $HTTP_POST_VARS['cat'];
$mv = $HTTP_POST_VARS['mv'];
$anaam = $HTTP_POST_VARS['anaam'];
$vnaam = $HTTP_POST_VARS['vnaam'];
$adres = $HTTP_POST_VARS['adres'];
$pc = $HTTP_POST_VARS['pc'];
$pc2 = $HTTP_POST_VARS['pc2'];
$wp = $HTTP_POST_VARS['wp'];
$geb = $HTTP_POST_VARS['geb'];
$ntb = $HTTP_POST_VARS['ntb'];
$lic = $HTTP_POST_VARS['lic'];
$tel = $HTTP_POST_VARS['tel'];
$fax = $HTTP_POST_VARS['fax'];
$email = $HTTP_POST_VARS['email'];
$bagi = $HTTP_POST_VARS['bagi'];
$lid = $HTTP_POST_VARS['triad'];
$ver = $HTTP_POST_VARS['ver'];
$plaats = $HTTP_POST_VARS['plaats'];
$eerst = $HTTP_POST_VARS['eerst'];
if ($anaam == $null) { die("ERROR - U heeft geen achternaam ingevuld !"); }
if ($vnaam == $null) { die("ERROR - U heeft geen voornaam ingevuld !"); }
if ($adres == $null) { die("ERROR - U heeft geen adres ingevuld !"); }
if ($pc == $null) { die("ERROR - U heeft geen postcode ingevuld !"); }
if ($pc2 == $null) { die("ERROR - U heeft geen postcode ingevuld !"); }
if ($wp == $null) { die("ERROR - U heeft geen woonplaats ingevuld !"); }
$send = mysql("martijn", "INSERT INTO inschrijftri (sw, zt, cat, mv, anaam, vnaam, adres, pc, pc2, wp, geb, ntb, lic, tel, fax, email, bagi, lid, ver, plaats, eerst) VALUES('$sw', '$zt', '$cat', '$mv', '$anaam', '$vnaam', '$adres', '$pc', '$pc2', '$wp', '$geb', '$ntb', '$lic', '$tel', '$fax', '$email', '$bagi', '$lid', '$ver', '$plaats', '$eerst')");
if ($send == 0) {
die("<FONT FACE='ARIAL' COLOR='RED' SIZE='2'><B>Connection failed with MYSQL Database server. Please try again or/and inform me.</B></FONT><BR>");
} else {
echo "<FONT FACE='ARIAL' COLOR='LIME' SIZE='2'><B>Record Added.</B></FONT><BR>";
}
?>