Okee, deze code werkt niet:
[COLOR= #0000BB]<?[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_SERVER[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]REQUEST_METHOD[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]"POST"[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"<br><br>"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$user[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #0000BB]$_GET[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]ref[/COLOR][COLOR= #007700]];[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]voornaam[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"U heeft geen voornaam ingevuld."[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]achternaam[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"U heeft geen achternaam ingevuld"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/elseif"]elseif[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]] ==[/COLOR] [COLOR= #DD0000]""[/COLOR][COLOR= #007700]){[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"Geen emailadres ingevuld!"[/COLOR][COLOR= #007700];
}[/COLOR][URL="http://www.php.net/else"]else[/URL][COLOR= #007700]{[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL][COLOR= #DD0000]"Uw bestelling is succesvol ontvangen<br />Controleer uw email voor de factuur.<br />Let op! Refresh deze pagina niet."[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #FF8000]// subject[/COLOR]
[COLOR= #0000BB]$subject[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]Uw bestelling op Cameramast.com[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #FF8000]// message[/COLOR]
[COLOR= #0000BB]$message[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]
<html>
<head>
<title>Bestelling op Cameramast.com</title>
</head>
<body>
<p>Geachte heer/mevrouw,<br />
<br />
Bedankt voor de bestelling bij Cameramast.com<br />
Hieronder vindt u een factuur met uw gegevens en de bestelde producten.<br />
<br /></p>
<p><b>Gegevens:</b></p><br />
<table border="0">
<tr>
<th>Bedrijf: </th><th>$_POST[bedrijf];</th>
</tr>
<tr>
<th>Voornaam: </th><th>$_POST[voornaam]</th>
</tr>
<tr>
<th>Achternaam:</th><th>$_POST[achternaam]</th>
</tr>
<tr>
<th>Adres:</th><th>$_POST[adres]</th>
</tr>
<tr>
<th>Postcode + Plaats:</th><th>$_POST[postcode] $_POST[plaats]</th>
</tr>
<tr>
<th>Land:</th><th>$_POST[land]</th>
</tr>
<tr>
<th>E-mail adres:</th><th>$_POST</th>
</tr>
<tr>
<th>Telefoonnummer:</th><th>$_POST[tel]</th>
</tr>
<tr>
<th>Mobiele nummer:</th><th>$_POST[mob]</th>
</tr>
<tr>
<th>Kamer van Koophandel:</th><th>$_POST[kvk]</th>
</tr>
<tr>
<th>BTW-nummer:</th><th>$_POST[btw]</th>
</tr>
</table><br /><br />
<b>Factuur:</b>
HIER MOET OOK EEN STUK PHP KOMEN, MAAR WERKT ALLEMAAL NIET :S
</body>
</html>
[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #FF8000]// To send HTML mail, the Content-type header must be set[/COLOR]
[COLOR= #0000BB]$headers[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]MIME-Version: 1.0[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]"
"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$headers[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]Content-type: text/html; charset=iso-8859-1[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]"
"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #FF8000]// Additional headers[/COLOR]
[COLOR= #0000BB]$headers[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]From: HOI <HOI@HOI.com>[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]"
"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$headers[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]Bcc: HOI[/COLOR] [COLOR= #007700].[/COLOR] [COLOR= #DD0000]"
"[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #FF8000]// Mail it[/COLOR]
[URL="http://www.php.net/mail"]mail[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR]email[COLOR= #007700]],[/COLOR] [COLOR= #0000BB]$subject[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$message[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$headers[/COLOR][COLOR= #007700]);[/COLOR]
?>
Weet je ook toevallig hoe ik het goede email adres moet weergeven? want nu staat er in de mailbox wel de afzender, en als ik het mailtje open staat er:
En dan werkt het, tenzij de beveiliging niet goed is volgens sebastiaan
Heb al gezocht op internet en kan het niet vinden. Kan ook zijn dat ik scheel ben, want het zal best op internet staan.
En jouw code is fout, alweer.