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 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Oct 2005
    Posts
    582
    Tokens
    0

    Default Hey, help please needing usersystem

    needing userstsytem examples
    Last edited by Fifa07; 20-10-2006 at 07:34 PM.

  2. #2
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    Mm ill outline the basics needed with comments

    PHP Code:
    <?
    session_start
    (); // ALLOWS SESSIONS :o
    include ("config.php"); // INCLUDES THE CONFIGURATION FILE
    if (!$_SESSION[username){ //Checks to see if they are logged in
    echo ("You are not logged in!"); // Displays NOT LOGGED IN MESSAGE oMG
    }
    else
    {
    // REST OF PAGE GOES HERE
    // eg.
    <form name=login action=login.php method=POST>
    Username:<input name=username type=text><BR>
    Password: <input name=password type=password><BR>
    Login To: <input value=SITENAME type=readonly><BR
    // Dunno if the readon only exists. Just messing about ;)
    }
    // Thank you for shopping at tescos, Love Jack
    ?>
    The { } are uses when doing IF, WHILE and other types of statements. They are basically needed when showing where sections open and close

    Hope this helps?

    TELL ME IF THERES ERRORS GUYS

  3. #3
    Join Date
    Oct 2005
    Posts
    582
    Tokens
    0

    Default

    Ok thnx also how do i setup accounts on freewebs

  4. #4
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    What do u mean setup accounts :S

    Do u mean "Install a user system on my freewebs account" ?

  5. #5
    Join Date
    Sep 2006
    Location
    United Kingdom
    Posts
    667
    Tokens
    0

    Default

    LMAO You cant!

  6. #6
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    Hehe. its upseting isn't it..

    There only thing possible is to host ya php files on another site and include em with html

    Int that right Panther

  7. #7
    Join Date
    Sep 2006
    Location
    United Kingdom
    Posts
    667
    Tokens
    0

    Default

    Yeh :p

  8. #8
    Join Date
    Nov 2006
    Location
    North Carolina, UA
    Posts
    128
    Tokens
    0

    Default

    If you have a proper domain I will host you for free.

    Kevin
    ---------------
    I also use the account: Dentafrice
    ---------------

  9. #9
    Join Date
    Dec 2005
    Location
    Australia
    Posts
    693
    Tokens
    0

    Default

    Quote Originally Posted by Jackboy View Post
    Mm ill outline the basics needed with comments

    PHP Code:
    <?
    session_start
    (); // ALLOWS SESSIONS :o
    include ("config.php"); // INCLUDES THE CONFIGURATION FILE
    if (!$_SESSION[username){ //Checks to see if they are logged in
    echo ("You are not logged in!"); // Displays NOT LOGGED IN MESSAGE oMG
    }
    else
    {
    // REST OF PAGE GOES HERE
    // eg.
    <form name=login action=login.php method=POST>
    Username:<input name=username type=text><BR>
    Password: <input name=password type=password><BR>
    Login To: <input value=SITENAME type=readonly><BR
    // Dunno if the readon only exists. Just messing about ;)
    }
    // Thank you for shopping at tescos, Love Jack
    ?>
    The { } are uses when doing IF, WHILE and other types of statements. They are basically needed when showing where sections open and close

    Hope this helps?

    TELL ME IF THERES ERRORS GUYS
    Um, you forgot the echo..

    gj php coder.
    XHTML, CSS, AJAX, JS, php, MySQL.

    --

    HxF moderators can't read timestamps.

  10. #10
    Join Date
    Sep 2005
    Location
    East London
    Posts
    3,028
    Tokens
    0

    Latest Awards:

    Default

    very sorry. I rushed it because i was busy.

    Also i did it wrong

    I did a check to see if they were logged in and displayed "Your are not logged in" and then if they were logged in, the login form displayed.

    Also im sure i remember purposely doing it because i didn't like the guy.

    Anyway nice bump lol and thanks for pointing the echo out. I saw you had posted and i thought "oh god, what have i done now"

Page 1 of 2 12 LastLast

Posting Permissions

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