Hey,
Ik heb deze error:
In dit bestand:Alleen zie ik de fout niet
Groetjes,
Ewan
Ik heb deze error:
Parse error: syntax error, unexpected } in /home/***/domains/***/public_html/test/bestel.php on line 3 In dit bestand:
Spoiler tonen
[COLOR= #0000BB]<?php
$cmail[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"***"[/COLOR][COLOR= #007700];[/COLOR] [COLOR= #FF8000]// Jouw email adres hier.[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700](([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"voornaam"[/COLOR][COLOR= #007700]]) && ([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"achternaam"[/COLOR][COLOR= #007700]]) && ([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"email"[/COLOR][COLOR= #007700]]) && ([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"adres"[/COLOR][COLOR= #007700]]) && ([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"postcode"[/COLOR][COLOR= #007700]]) && ([/COLOR][URL="http://www.php.net/isset"]isset[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"woonplaats"[/COLOR][COLOR= #007700]])) }[/COLOR]
[COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #0000BB]0[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$fouten[/COLOR][COLOR= #007700]=[/COLOR][COLOR= #DD0000]""[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"voornaam"[/COLOR][COLOR= #007700]])) {[/COLOR]
[COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
[COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen voornaam ingevoerd<br />"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"achternaam"[/COLOR][COLOR= #007700]])) {[/COLOR]
[COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
[COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen achternaam ingevoerd<br />"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"email"[/COLOR][COLOR= #007700]])) {[/COLOR]
[COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
[COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen email-adres ingevoerd<br />"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"adres"[/COLOR][COLOR= #007700]])) {[/COLOR]
[COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
[COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen adres ingevoerd<br />"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"postcode"[/COLOR][COLOR= #007700]])) {[/COLOR]
[COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
[COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen postcode ingevoerd<br />"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][URL="http://www.php.net/empty"]empty[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"email"[/COLOR][COLOR= #007700]])) {[/COLOR]
[COLOR= #0000BB]$fout[/COLOR][COLOR= #007700]++;[/COLOR]
[COLOR= #0000BB]$fouten[/COLOR] [COLOR= #007700].=[/COLOR] [COLOR= #DD0000]"Geen woonplaats ingevoerd<br />"[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/if"]if[/URL] [COLOR= #007700]([/COLOR][COLOR= #0000BB]$fout[/COLOR] [COLOR= #007700]!=[/COLOR] [COLOR= #0000BB]0[/COLOR][COLOR= #007700]) {[/COLOR]
?>
<form action="" method="POST">
<table width="450px">
</tr>
<tr>
<td valign="top">
Voornaam:
</td>
<td valign="top">
<input type="text" name="voornaam" maxlength="50" size="50">
</td>
</tr>
<tr>
<td valign="top">
Achternaam:
</td>
<td valign="top">
<input type="text" name="achternaam" maxlength="50" size="50">
</td>
</tr>
<tr>
<td valign="top">
Email:
</td>
<td valign="top">
<input type="text" name="email" maxlength="100" size="50">
</td>
</tr>
<tr>
<td valign="top">
Adres:
</td>
<td valign="top">
<input type="text" name="adres" maxlength="100" size="50">
</td>
</tr>
<tr>
<td valign="top">
Postcode:
</td>
<td valign="top">
<input type="text" name="postcode" maxlength="6" size="50">
</td>
</tr>
<tr>
<td valign="top">
Woonplaats:
</td>
<td valign="top">
<input type="text" name="woonplaats" maxlength="50" size="50">
</td>
</tr>
<tr>
<td valign="top">
Product:
</td>
<td valign="top">
<input type="text" name="product" maxlength="100" size="50" value="Test" readonly>
</td>
</tr>
<tr>
<td valign="top">
Prijs (per stuk):
</td>
<td valign="top">
<input type="text" name="prijs" maxlength="100" size="50" value="Test" readonly>
</td>
</tr>
<tr>
<td valign="top">
Aantal:
</td>
<td valign="top">
<select name="aantal"><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option></select>
</td>
</tr>
<tr>
<td valign="top">
Opmerkingen:
</td>
<td valign="top">
<textarea name="opmerkingen" maxlength="1000" cols="39" rows="6"></textarea>
</td>
</tr>
<tr>
<td colspan="2" style="text-align:center">
<input type="submit" value="Bestel">
</td>
<td colspan="2" style="text-align:center">
<input type="reset" value="Annuleer">
</td>
</tr>
</table>
</form>
<br />
<b>De volgende fouten zijn opgetreden:</b><br /><br />
[COLOR= #0000BB]<?[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #0000BB]$fouten[/COLOR][COLOR= #007700];
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
[COLOR= #0000BB]$headers[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]"From: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"
Reply-To: "[/COLOR][COLOR= #007700].[/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]email[/COLOR][COLOR= #007700]].[/COLOR][COLOR= #DD0000]"
X-Mailer: PHP/"[/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/phpversion"]phpversion[/URL][COLOR= #007700]();[/COLOR]
[URL="http://www.php.net/mail"]mail[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$cmail[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"product"[/COLOR][COLOR= #007700]],[/COLOR] [COLOR= #DD0000]"<html>"[/COLOR][COLOR= #007700].[/COLOR][URL="http://www.php.net/nl2br"]nl2br[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$_POST[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]"voornaam"[/COLOR][COLOR= #007700]]).[/COLOR][COLOR= #DD0000]"</html>"[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$headers[/COLOR][COLOR= #007700]);
}
}[/COLOR]
[URL="http://www.php.net/else"]else[/URL] [COLOR= #007700]{[/COLOR]
?>
<form action="" method="POST">
<table width="450px">
</tr>
<tr>
<td valign="top">
Voornaam:
</td>
<td valign="top">
<input type="text" name="voornaam" maxlength="50" size="50">
</td>
</tr>
<tr>
<td valign="top">
Achternaam:
</td>
<td valign="top">
<input type="text" name="achternaam" maxlength="50" size="50">
</td>
</tr>
<tr>
<td valign="top">
Email:
</td>
<td valign="top">
<input type="text" name="email" maxlength="100" size="50">
</td>
</tr>
<tr>
<td valign="top">
Adres:
</td>
<td valign="top">
<input type="text" name="adres" maxlength="100" size="50">
</td>
</tr>
<tr>
<td valign="top">
Postcode:
</td>
<td valign="top">
<input type="text" name="postcode" maxlength="6" size="50">
</td>
</tr>
<tr>
<td valign="top">
Woonplaats:
</td>
<td valign="top">
<input type="text" name="woonplaats" maxlength="50" size="50">
</td>
</tr>
<tr>
<td valign="top">
Product:
</td>
<td valign="top">
<input type="text" name="product" maxlength="100" size="50" value="Test" readonly>
</td>
</tr>
<tr>
<td valign="top">
Prijs (per stuk):
</td>
<td valign="top">
<input type="text" name="prijs" maxlength="100" size="50" value="Test" readonly>
</td>
</tr>
<tr>
<td valign="top">
Aantal:
</td>
<td valign="top">
<select name="aantal"><option value="1">1</option><option value="2">2</option><option value="3">3</option><option value="4">4</option><option value="5">5</option><option value="6">6</option><option value="7">7</option><option value="8">8</option><option value="9">9</option><option value="10">10</option></select>
</td>
</tr>
<tr>
<td valign="top">
Opmerkingen:
</td>
<td valign="top">
<textarea name="opmerkingen" maxlength="1000" cols="39" rows="6"></textarea>
</td>
</tr>
<tr>
<td colspan="2" style="text-align:center">
<input type="submit" value="Bestel">
</td>
<td colspan="2" style="text-align:center">
<input type="reset" value="Annuleer">
</td>
</tr>
</table>
</form>
[COLOR= #0000BB]<?php[/COLOR]
[COLOR= #007700]}[/COLOR]
?>Groetjes,
Ewan

het enige php dat ik kan is includen 
