Ik heb onderstaande gemaakt maar bij het verzenden ontvang ik geen mail en ook niet de melding dat er contact wordt opgenomen.
Wie weet wat ik fout doe?
Wie weet wat ik fout doe?
PHP:
<body>
<?php
if (isset($submit)){
/* E-mail samenstellen */
$recipient = "*******";
$subject = "Reservering";
$header = "FROM: $email ";
/* E-mail tekst */
$mail_body = "
De volgende gegevens werden ingevoerd.\n\n
Naam: $naam
E-mail: $email
Adres: $adres
Postcode: $postcode
Woonplaats: $woonplaats
Telefoon: $telefoon
Roepnaam: $roepnaam
Geslacht: $geslacht
Ras en kleur: $ras
Voorkeur voer: $voer
Dieetvoer: $dieet
Medicijngebruik: $medicijn
Eventueel chipnummer: $chipnummer
Naam dierenarts: $dierenarts
Telefoonnummer dierenarts: $tdierenarts
Naam: $noodnaam
Telefoon: $noodnummer
\n
";
/* E-mail versturen */
mail($recipient, $subject, $mail_body, $header);
/* form uitgevoerd melding weergegeven */
echo 'U ontvangt zo spoedig mogelijk bericht.';
}
else
{
?>
<form name="form1" method="post" action="reserveringen.php?submit=1">
<p> </p>
<table border="0" width="100%">
<tr>
<td width="100%" valign="top" colspan="2">
<b>Gegevens eigenaar</b></td>
</tr>
<tr>
<td width="20%" valign="top"><p style="margin-top: 1; margin-bottom: 1">Naam:</td>
<td width="80%"><!--webbot bot="Validation" s-data-type="String"
b-value-required="TRUE" --><input type="text" name="naam" size="30" style="border: 2 solid #000000" value="Uw naam"></td>
</tr>
<tr>
<td width="20%" valign="top">E-mail:</td>
<td width="80%"><!--webbot bot="Validation" b-value-required="TRUE" --><input type="text" name="email" size="30" style="border: 2 solid #000000" value="Uw e-mail adres"></td>
</tr>
<tr>
<td width="20%" valign="top"><p style="margin-top: 1; margin-bottom: 1">Adres:</td>
<td width="80%"><p style="margin-top: 1; margin-bottom: 1"><!--webbot
bot="Validation" b-value-required="TRUE" --><input type="text" name="adres" size="30" style="border: 2 solid #000000" value="Uw straat en huisnummer"></td>
</tr>
<tr>
<td width="20%" valign="top"><p style="margin-top: 1; margin-bottom: 1">Postcode:</td>
<td width="80%"><p style="margin-top: 1; margin-bottom: 1"><!--webbot
bot="Validation" b-value-required="TRUE" --><input type="text" name="postcode" size="4" style="border: 2 solid #000000" value="1000">
<!--webbot bot="Validation" b-value-required="TRUE" --><input type="text" name="postcode1" size="2" style="border: 2 solid #000000" value="AA"></td>
</tr>
<tr>
<td width="20%" valign="top"><p style="margin-top: 1; margin-bottom: 1">Woonplaats:</td>
<td width="80%"><p style="margin-top: 1; margin-bottom: 1"><!--webbot
bot="Validation" b-value-required="TRUE" --><input type="text" name="woonplaats" size="30" style="border: 2 solid #000000" value="Uw woonplaats"></td>
</tr>
<tr>
<td width="20%" valign="top"><p style="margin-top: 1; margin-bottom: 1">Telefoon:</td>
<td width="80%"><input type="text" name="telefoon" size="12" style="border: 2 solid #000000" value="Vast">
<!--webbot bot="Validation" b-value-required="TRUE" --><input type="text" name="telefoon1" size="13" style="border: 2 solid #000000" value="Mobiel"></td>
</tr>
<tr>
<td width="100%" valign="top" colspan="2">
<p><b>Gegevens kat</b></p>
</td>
</tr>
<tr>
<td width="20%" valign="top"><p style="margin-top: 1; margin-bottom: 1">Roepnaam:</td>
<td width="80%"><!--webbot bot="Validation" s-data-type="String"
b-value-required="TRUE" --><input type="text" name="Roepnaam" size="30" style="border: 2 solid #000000" value="Roepnaam invullen"></td>
</tr>
<tr>
<td width="20%" valign="top">Geslacht:</td>
<td width="80%"><!--webbot bot="Validation" b-value-required="TRUE" --><input type="text" name="geslacht" size="30" style="border: 2 solid #000000" value="Geslacht invullen"></td>
</tr>
<tr>
<td width="20%" valign="top"><p style="margin-top: 1; margin-bottom: 1">Ras
en kleur:</td>
<td width="80%"><p style="margin-top: 1; margin-bottom: 1"><!--webbot
bot="Validation" b-value-required="TRUE" --><input type="text" name="ras" size="30" style="border: 2 solid #000000" value="Ras en kleur invullen"></td>
</tr>
<tr>
<td width="20%" valign="top"><p style="margin-top: 1; margin-bottom: 1">Voorkeur
voer:</td>
<td width="80%"><p style="margin-top: 1; margin-bottom: 1"><!--webbot
bot="Validation" b-value-required="TRUE" --><input type="text" name="voer" size="30" style="border: 2 solid #000000" value="Voorkeur voer invullen"></td>
</tr>
<tr>
<td width="20%" valign="top"><p style="margin-top: 1; margin-bottom: 1">Dieetvoer:</td>
<td width="80%"><p style="margin-top: 1; margin-bottom: 1"><!--webbot
bot="Validation" b-value-required="TRUE" --><input type="text" name="dieet" size="30" style="border: 2 solid #000000" value="Dieetvoer invullen"></td>
</tr>
<tr>
<td width="20%" valign="top">
<p style="margin-top: 1; margin-bottom: 1">Medicijngebruik:</td>
<td width="80%"><!--webbot bot="Validation" b-value-required="TRUE" --><input type="text" name="medicijn" size="60" style="border: 2 solid #000000" value="Medicijnen invullen"></td>
</tr>
<tr>
<td width="20%" valign="top"><p style="margin-top: 1; margin-bottom: 1">Eventueel
chipnummer:</td>
<td width="80%"><p style="margin-top: 1; margin-bottom: 1"><!--webbot
bot="Validation" b-value-required="TRUE" --><input type="text" name="Chip" size="30" style="border: 2 solid #000000" value="Chipnummer invullen"></td>
</tr>
<tr>
<td width="100%" valign="top" colspan="2">
<p><b>Gegevens dierenarts</b></p>
</td>
</tr>
<tr>
<td width="20%" valign="top"><p style="margin-top: 1; margin-bottom: 1">Naam
dierenarts:</td>
<td width="80%"><!--webbot bot="Validation" s-data-type="String"
b-value-required="TRUE" --><input type="text" name="Dierenarts" size="30" style="border: 2 solid #000000" value="Naam dierenarts invullen"></td>
</tr>
<tr>
<td width="20%" valign="top">Telefoonnummer dierenarts:</td>
<td width="80%"><!--webbot bot="Validation" b-value-required="TRUE" --><input type="text" name="TDierenarts" size="30" style="border: 2 solid #000000" value="Telefoonnr. dierenarts invullen"></td>
</tr>
<tr>
<td width="100%" valign="top" colspan="2">
<p><b>In geval van nood waarschuwen</b></p>
</td>
</tr>
<tr>
<td width="20%" valign="top"><p style="margin-top: 1; margin-bottom: 1">Naam:</td>
<td width="80%"><!--webbot bot="Validation" s-data-type="String"
b-value-required="TRUE" --><input type="text" name="Noodnaam" size="30" style="border: 2 solid #000000" value="Naam voor nood invullen"></td>
</tr>
<tr>
<td width="20%" valign="top">Telefoon::</td>
<td width="80%"><!--webbot bot="Validation" b-value-required="TRUE" --><input type="text" name="Noodnummer" size="30" style="border: 2 solid #000000" value="Nummer voor nood invullen"></td>
</tr>
<tr>
<td width="20%" valign="top"><input type="submit" value="Verzenden" name="B1" style="color: #000000; border: 2 solid #000000; font-family: verdana; font-weight:700; font-size:11px">
<input type="reset" value="Opnieuw" name="B2" style="color: #000000; border: 2 solid #000000; font-family: verdana; font-weight:700; font-size:11px"></td>
<td width="80%"></td>
</tr>
</table>
</form>
<?
/* IF/THEN Routine afsluiten */
};
?>
</body>
Laatst bewerkt door een moderator: