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!


Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2005
    Location
    Up North
    Posts
    1,002
    Tokens
    93

    Latest Awards:

    Default [PHP] What's wrong with this?

    Code:
        } else if ($mthd == "ecpdeactivate") {
    ?>
    <form method="post" action="index.php?act=site&mthd=ecpdeactivate2">
    <input type="text" name="codeword" id="codeword">
    <input type="submit" value="submit">
    </form>                
    <?php        
        } else if ($mthd == "ecpdeactivate2") {
    
            $codewordmd5 = d41d8cd98f00b204e9800998ecf8427e;
            $codeword =$_post['codeword'];
            if (md5($codeword)!== $codewordmd5) {
    echo "Wrong. Soz 'ard"; } else { echo "genius!";
    
    } 
    
    }

    Anybody?

  2. #2
    Join Date
    Nov 2007
    Posts
    1,253
    Tokens
    150

    Latest Awards:

    Default

    alot. We need the full script to be of anyhelp, in its current form nothing makes sense. We'll help when we have something we can work with


    www.fragme.co = a project.

  3. #3
    Join Date
    Oct 2005
    Location
    Up North
    Posts
    1,002
    Tokens
    93

    Latest Awards:

    Default

    That's the only place in the code which is causing me problems.. every other feature works.. just not that simple if statement.

  4. #4
    Join Date
    Jul 2004
    Location
    Scotland
    Posts
    17,702
    Tokens
    60,948
    Habbo
    Habbic

    Latest Awards:

    Default

    And the error is? or is it just generally not working?

  5. #5
    Join Date
    Oct 2005
    Location
    Up North
    Posts
    1,002
    Tokens
    93

    Latest Awards:

    Default

    Sorry.. Forgot to mention.. It's the script what is not working.. There are no errors showing up

  6. #6
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Simply telling us that "it doesn't work", isn't going to help us diagnose the problem.

    What is it displaying? Is there any output at all? Come on. ;P

  7. #7
    Join Date
    Oct 2005
    Location
    Up North
    Posts
    1,002
    Tokens
    93

    Latest Awards:

    Default

    Thanks for the attempts at help.. but somehow i managed to fix it myself... i don't quite remember what i did, but now it's working

    ;D

  8. #8
    Join Date
    Dec 2006
    Location
    Swindon
    Posts
    3,299
    Tokens
    215
    Habbo
    dunko

    Latest Awards:

    Default

    theres a space between else and if...

  9. #9
    Join Date
    Mar 2008
    Posts
    5,108
    Tokens
    3,780

    Latest Awards:

    Default

    Quote Originally Posted by Blob View Post
    theres a space between else and if...
    That doesn't matter.

    That only matters when you're not using curly braces.

Posting Permissions

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