Is it like a guessing game? Or like above you give the user a code and they have to repeat it in a text box?
Printable View
Is it like a guessing game? Or like above you give the user a code and they have to repeat it in a text box?
Below :)
PHP Code:<?php
if($_GET["act"] == "submit")
{
$entry = ($_POST["entry"]);
$answer = "123";
if($entry == $answer)
{
echo("Well Done! You got it right. The answer was $answer.. you can replace this with the form or what ever.");
} else {
echo("Ohh Noes! You got it wrong.. lol");
}
}
else
{
echo("Please enter the answer into the box below:<br>
<form method=\"post\" action=\"?act=submit\">
<input type=\"text\" name=\"entry\"><br><br>
<input type=\"submit\" value=\"Submit\">
</form>");
}
?>
Just use re-captcha?
Thanks xD
@ above Jack's post, We are doing this Enterprise thing, and we have to make a profit. And my product is simply they pay 50p and get a card with code on it, they go to the website i'm going to set up, and enter code . If they win they get £5 (low budge) :P
Thanks again :P