Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11

    Default

    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?

  2. #12
    Join Date
    May 2006
    Location
    Hull
    Posts
    7,701
    Tokens
    2,430
    Habbo
    Moh

    Latest Awards:

    Default

    Quote Originally Posted by Pazza View Post
    Yeah, for this enterprise evening.

    So in Jacks code,

    Do I specify a code, and that code is the only one accepted. So, basically the page will just be a box to type the code in, and a submit button. If I say the code is 123, if 123 is entered it will redirect to another page saying congrats you won bla bla bla. If it is the wrong one it will say sorry, you have lost. I don't mean there is a code shown, but 123 would be the only code that could be accepted ??
    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>"
    );
        }
    ?>
    Last edited by Moh; 22-04-2008 at 09:09 PM.

  3. #13
    Join Date
    Dec 2006
    Posts
    3,369
    Tokens
    0

    Latest Awards:

    Default

    Just use re-captcha?
    PM me for help.



  4. #14
    Join Date
    Apr 2007
    Posts
    2,431
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Jack120 View Post
    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>"
    );
        }
    ?>
    Thanks

    @ 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)

    Thanks again

    [X] [X] [X]

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •