<?php
/**
* @Ruben
* @copyright 2009
*/
if ($_POST['naam'] , $_POST['achternaam']) { //Checkt of alles is ingevuld
echo ("Je moet alles invullen, ga terug alsjeblieft.");//Geeft aan dat niet alles is ingevoerd
} else {
Hey <?php echo htmlspecialchars($_POST['naam']); Je achternaam is <?php echo $_POST['achternaam'];}//Dit script word ingevoerd als alles is ingevuld
?>
als ik dit via het form:
<form action="volgende.php" method="post">
<p>Je naam: <input type="text" name="naam" /></p>
<p>Je achternaam: <input type="text" name="achternaam" /></p>
<p><input type="submit" /></p>
</form>
verzend krijg ik dit:
Parse error: syntax error, unexpected ',' in /usr/export/www/vhosts/funnetwork/hosting/tg4a/phphulp/volgende.php on line 7
Hoe dit op te lossen lol :P