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 8 of 8
  1. #1
    Join Date
    Aug 2006
    Posts
    282
    Tokens
    0

    Default Need a PHP Code please.

    I need a PHP code to paste onto one file so a password is required.

    Thanks.

  2. #2
    Join Date
    Aug 2006
    Location
    United Kingdom
    Posts
    207
    Tokens
    0

    Default

    I don't quite understand what you mean?
    PHP Code:
    [LEFT]<?[/LEFT]
    [
    LEFT]$name $_GET['name'];[/LEFT]
    [
    LEFT]echo "Hi, your name is $name";[/LEFT]
    [
    LEFT]?>[/LEFT]
    [LEFT][/LEFT]

  3. #3
    Join Date
    Aug 2006
    Posts
    282
    Tokens
    0

    Default

    Basically i need a simple code so not like htaccess where the whole folder requires a password to access but just a certain file.

  4. #4
    Join Date
    Aug 2006
    Location
    United Kingdom
    Posts
    207
    Tokens
    0

    Default

    PHP Code:
    [LEFT]<?[/LEFT]
    [
    LEFT]$name $_GET['name'];[/LEFT]
    [
    LEFT]echo "Hi, your name is $name";[/LEFT]
    [
    LEFT]?>[/LEFT]
    [LEFT][/LEFT]

  5. #5
    Join Date
    Aug 2006
    Posts
    282
    Tokens
    0

    Default

    Not very secure.

  6. #6
    Join Date
    Feb 2006
    Location
    Ontario Canada
    Posts
    4,587
    Tokens
    0

    Latest Awards:

    Default

    use mysql then lol

    .:.:#14:.:. .:.: Impossible Is Nothing :.:. .:.: 845 Rep:.:.
    .:.: Stand up for what is right, even if you stand alone:.:.


  7. #7
    Join Date
    Aug 2006
    Posts
    282
    Tokens
    0

    Default

    Nah, i am using that anyway and making it more secure.

  8. #8
    Join Date
    Nov 2004
    Location
    HabboWeb FM Offices
    Posts
    3,019
    Tokens
    0

    Latest Awards:

    Default

    Make a form. Call the password box password

    Then use this

    <?PHP
    if ($password == $passwordhere) Then {
    echo"Whatever";
    }
    ?>

    Should work?
    Last edited by :Blob; 09-08-2006 at 11:37 AM.

Posting Permissions

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