<?
$wie = $_GET['aan'];
if($_POST['verzenden']) {
if(!$wie) {
} else { $naar = $wie; }
$headers = "From:".$reply."";
mail($naar, $onderwerp, $bericht, $headers); echo "Je bericht is sucsesvol verzonden!"; } else {
?>
<form name="contact" method="post" action="">
<table width="90%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#CCCCCC">
<td colspan="2"> </td>
</tr>
<?
if(!$wie) {
?>
<tr>
<td>Aan:</td>
<td>
<select name="naar">
<option value="info@cowbeast.be">Info</option>
<option value="maarten@cowbeast.be">Maarten</option>
<option value="mathieu@cowbeast.be">Mathieu</option>
<option value="benny@cowbeast.be">Benny</option>
</select>
</td>
</tr>
<?
<tr>
<td>Aan:</td>
<td><b>$wie</b></td>
</tr>"; }
?>
<tr>
<td width="30%">Onderwerp:</td>
<td width="70%">
<input type="text" name="onderwerp">
</td>
</tr> <tr>
<td valign="top">Je e-mail:</td>
<td>
<input type="text" name="reply">
</td>
</tr>
</tr>
<tr>
<td valign="top">Bericht:</td>
<td>
<textarea name="bericht" cols="50" rows="6"></textarea>
</td>
</tr>
<tr>
<td colspan="2">
<input type="submit" name="verzenden" value="Verzenden">
<input type="reset" name="reset" value="Wissen">
</td>
</tr>
</table></form>
<?
}
?>