'6LelZQkUAAAAAKnDiQ9hWqpvUIX5-eAJF3qyzMr6', 'response' => $grecaptcha, 'remoteip' => get_client_ip()); // use key 'http' even if you send the request to https://... $options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', 'content' => http_build_query($data) ) ); $context = stream_context_create($options); $json = file_get_contents($url, false, $context); $cap = json_decode($json, true); session_start(); // if(isset($_SESSION['captcha_spam']) AND $_POST["sicherheitscode"] == $_SESSION['captcha_spam']){ // unset($_SESSION['captcha_spam']); if($cap["success"]) { $zeit=date("y-m-d"); mysql_query("INSERT INTO WebhostingAustria2_zuenftig.gaestebuch (id,datum,name,eintrag) VALUES (NULL,'" . date("y.m.d") . "','" . $_POST["Name"] . "','" . $_POST["eingabe"] . "');"); } else{ $alertString = ""; echo $alertString; } } ?> Die 3 Zünftigen - Gästebuch

Gästebuch

Neuer GB-Eintrag

\n" ; echo ""; echo "Datum" . $row [ 'datum' ] . "\n" ; echo "Name" . $row [ 'name' ] . "\n" ; echo "Eintrag" ; echo "" . $row ['eintrag'] . "\n" ; echo "\n
\n"; } ?>