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
    Nov 2005
    Posts
    4,486
    Tokens
    921

    Latest Awards:

    Default Help with some code plz =D [+Rep]

    Hi, I want to know what should I add to the code below to make the specified go into a new window, not the same one.
    + rep for awnsers
    - T.

    setcookie("in", 1, time()+3600);
    // Start hidden page
    header("Location: http://www.cowly.co.uk/staff/logged.htm");
    }
    }
    Edited by Lµke (Forum Moderator): Thread Moved From Website Designing. Please post in the correct section next time, Thanks .
    Last edited by Lµke; 15-02-2007 at 05:19 PM.
    "RETIRED" FROM HABBO(X)

    :¬:

    TOMSPIT / COWLY05


  2. #2
    Join Date
    Dec 2006
    Location
    Doncaster, UK
    Posts
    4,244
    Tokens
    0

    Latest Awards:

    Default

    -ignore.

    PHP.
    Last edited by F32; 15-02-2007 at 05:25 PM.
    A collection of forum users' views on obesity
    Quote Originally Posted by mynameisjake View Post
    sounds good
    Quote Originally Posted by Stephen View Post
    Just google it.
    Quote Originally Posted by jesus View Post
    jesus christ
    Quote Originally Posted by Alexicles. View Post
    It will probably soon go away.

  3. #3
    Join Date
    Nov 2005
    Posts
    4,486
    Tokens
    921

    Latest Awards:

    Default

    This is php...?
    - T.
    "RETIRED" FROM HABBO(X)

    :¬:

    TOMSPIT / COWLY05


  4. #4
    Join Date
    Jan 2007
    Location
    West Yorkshire
    Posts
    384
    Tokens
    0

    Default

    PHP cannot control the client, it is server-side, so it cannot choose whether it loads in a new page etc.

    Use Javascript to load the page instead.

    Heres a simple code
    Code:
    <script type="text/javascript">
    function LoadPage(URL){
    window.open(URL);
    }
    </script>
    And heres an example of using it
    Code:
    <a href="javascript:LoadPage('http://google.co.uk')">LOL</a>
    Last edited by ZAG; 15-02-2007 at 05:27 PM.

    “two players, two sides.
    one is light, one is dark.”
    - John Locke

  5. #5
    Join Date
    Nov 2005
    Posts
    4,486
    Tokens
    921

    Latest Awards:

    Default

    Oh yeah forgot, its for a login system
    Plz =D
    "RETIRED" FROM HABBO(X)

    :¬:

    TOMSPIT / COWLY05


  6. #6
    Join Date
    Jan 2007
    Location
    West Yorkshire
    Posts
    384
    Tokens
    0

    Default

    Then you could use something like this

    PHP Code:
    <?php
    setcookie
    ("in"1time()+3600);
    // Start hidden page
    ?>
    <script type="text/javascript">
    window.open('http://www.cowly.co.uk/staff/logged.htm');
    </script>
    <?php
    }
    }
    ?>

    “two players, two sides.
    one is light, one is dark.”
    - John Locke

  7. #7
    Join Date
    Nov 2005
    Posts
    4,486
    Tokens
    921

    Latest Awards:

    Default

    Thanks +rep.
    I am not using it but it would have worked.
    I am making a whole new system using a tutorial and building on it =D
    - T.
    "RETIRED" FROM HABBO(X)

    :¬:

    TOMSPIT / COWLY05


  8. #8
    Join Date
    Jan 2007
    Location
    West Yorkshire
    Posts
    384
    Tokens
    0

    Default

    OK, thanks

    “two players, two sides.
    one is light, one is dark.”
    - John Locke

Posting Permissions

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