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 6 of 6
  1. #1
    Join Date
    Jan 2007
    Posts
    651
    Tokens
    0

    Default Tutorial please.

    How do i do the PHP navigation things like ?page=home ?
    James


    Connected to reality through a proxy server.

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

    Latest Awards:

    Default

    PHP Code:
    <?php
    if( isset( $_GET["page"] ) )
    {
        
    $string $_GET["page"];
        
    $string preg_replace"([^a-zA-Z0-9])"""$string );
        if( 
    file_exists$string ".php" )
        {
            include( 
    "$string.php" );
        }
        else
        {
            include( 
    "404.php" );
        }
    }
    ?>

  3. #3
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    Ignore plz
    EDTALKING


  4. #4
    Join Date
    Jan 2007
    Posts
    651
    Tokens
    0

    Default

    Quote Originally Posted by Blob View Post
    PHP Code:
    <?php
    if( isset( $_GET["page"] ) )
    {
        
    $string $_GET["page"];
        
    $string preg_replace"([^a-zA-Z0-9])"""$string );
        if( 
    file_exists$string ".php" )
        {
            include( 
    "$string.php" );
        }
        else
        {
            include( 
    "404.php" );
        }
    }
    ?>
    Ah wait i get it thanks alot, REP+
    Last edited by Mr Macro; 30-05-2007 at 04:47 PM.
    James


    Connected to reality through a proxy server.

  5. #5
    Join Date
    Jul 2005
    Posts
    1,653
    Tokens
    50

    Latest Awards:

    Default

    Quote Originally Posted by Mr Macro View Post
    Ah wait i get it thanks alot, REP+
    I doubt you do. I bet you just though, thanks for the code. I'm not going to bother learning because I can just ask on habbox for help all the time.

  6. #6
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by RYANNNNN View Post
    I doubt you do. I bet you just though, thanks for the code. I'm not going to bother learning because I can just ask on habbox for help all the time.
    lolololol - chillax
    EDTALKING


Posting Permissions

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