Gastenboek

$gbAantal berichten in het gastenboek.

[ Voeg een bericht toe! ]


"; while ($gbData = mysql_fetch_array ($gbQuery)) { $Naam = ($gbData['email'] <> "") ? "".$gbData['naam']."" : $gbData['naam']; $Datum = date ("d-m-Y", strtotime ($gbData['datum'])); $Tijd = date ("H:i:s", strtotime ($gbData['tijd'])); ?>
  om  


= 0) { $aantalVorige = 10; echo "<< Vorige $aantalVorige berichten    "; } if ($gbVolgende < $gbAantal) { $aantalVolgende = ($gbAantal - $gbVolgende) > $gbMax ? 10 : ($gbAantal - $gbVolgende); echo "Volgende $aantalVolgende berichten >>    "; } } else if (isset ($_GET['actie']) && $_GET['actie'] = "toevoegen") { if (!isset ($_GET['verzendForm'])) { echo "Bericht toevoegen in het gastenboek.

Naam
Email
Bericht

 
"; } else { if ($_GET['naam'] == 'abc123' || $_GET['email'] == 'mail@xg0n.net' || $_GET['noSpamBotsHere'] != 240) { echo "Uw bericht is niet geplaatst in het gastenboek.
Controleer de instellingen van uw internetbrowser, waarschijnlijk is JavaScript uitgeschakeld."; exit(); } $insertSQL = "INSERT INTO gastenboek (naam, bericht, email, datum, tijd, ip, host) VALUES ('".$_GET['naam']."', '".$_GET['bericht']."', '".$_GET['email']."', '".date("Y-m-d")."', '".date("H:i:s")."', '".$_SERVER['REMOTE_ADDR']."', '".$_SERVER['REMOTE_HOST']."');"; mysql_query ($insertSQL); echo ""; } } else { echo ""; } ?>