<html> <head> <?php include('includes/head.php'); ?> </head> <body> <?php include('includes/header.php'); ?> <form action="add2.php" method="post"> <?php require_once('recaptchalib.php'); $publickey = "xxx"; $privatekey = "xxx"; # the response from reCAPTCHA $resp = null; # the error code from reCAPTCHA, if any $error = null; # are we submitting the page? if ($_POST["submit"]) { $resp = recaptcha_check_answer ($privatekey, $_SERVER["REMOTE_ADDR"], $_POST["recaptcha_challenge_field"], $_POST["recaptcha_response_field"]); if (!$resp->is_valid) { "(reCAPTCHA said: " . $resp->error . ")"); } else { // Your code here to handle a successful verification } } ?> IP Servera:<input type="text" name="ip" /><br /> Wybierz typ serwera:<select name="typ"> <option value="halflife">Steam</option> <option value="halflifewon">No-Steam</option> <input type="submit" value="Dodaj!" /> </form> <?php include('includes/sidebar.php'); ?> <?php include('includes/footer.php'); ?> </html> </select><br>
Wszystko jest ladnie, pieknie lecz nawet jak wpisze zle captche to formularz i tak leci... Jak temu zaradzic?