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 3 123 LastLast
Results 1 to 10 of 27
  1. #1
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default Show a computers IP with HTML?

    Hey,
    Is this possible? I think I had this before, but forgot code.
    Example: On a contact form, it would show the persons IP number saying like:
    "your IP Number will be sent with the email" etc.

    ++REP for help.

  2. #2
    Join Date
    Jun 2006
    Posts
    4,832
    Tokens
    0

    Latest Awards:

    Default

    If I can remember correctly, you can't do it. HTML is client side and doesn't have anything to do with the server (it's just a page on the server). You can use PHP though.

  3. #3
    Join Date
    Apr 2007
    Posts
    2,431
    Tokens
    0

    Latest Awards:

    Default

    Code:
    <script language="JavaScript">
    VIH_BackColor = "palegreen";
    VIH_ForeColor = "navy";
    VIH_FontPix = "16";
    VIH_DisplayFormat = "You are visiting from:<br>IP Address: %%IP%%<br>Host: %%HOST%%";
    VIH_DisplayOnPage = "yes";
    </script>
    <script language="JavaScript" src="http://scripts.hashemian.com/js/visitorIPHOST.js.php"></script>
    Just edit that, and you should be done.

    URL = http://www.hashemian.com/tools/visitor-IP.htm

    But, there is a much simpler one here http://www.wallpaperama.com/forums/h...user-t399.html

    [X] [X] [X]

  4. #4
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default

    Thanks,
    ++++++++rep lol

  5. #5

    Default

    If it's on a contact form chances are it's PHP.
    View My DeviantART Gallery

    My new portfolio site is coming soon!

  6. #6
    Join Date
    Sep 2008
    Location
    UK
    Posts
    3,670
    Tokens
    0

    Latest Awards:

    Default

    PHP Code:
    <?php

    $ip 
    $_SERVER['REMOTE_ADDR'];

    echo (
    'Your IP is: <br />$ip');

    ?>
    Back for a while.

  7. #7
    Join Date
    Oct 2007
    Location
    Luton, England
    Posts
    1,548
    Tokens
    388
    Habbo
    DeejayMachoo

    Latest Awards:

    Default

    Quote Originally Posted by Excellent2 View Post
    PHP Code:
    <?php

    $ip 
    $_SERVER['REMOTE_ADDR'];

    echo (
    'Your IP is: <br />$ip');

    ?>
    Do u mean

    PHP Code:
    <?php

    $ip 
    $_SERVER['REMOTE_ADDR'];

    echo (
    'Your IP is: <br />'.$ip);

    ?>
    or

    PHP Code:
    <?php

    $ip 
    $_SERVER['REMOTE_ADDR'];

    echo 
    "'Your IP is: <br />$ip");

    ?>


  8. #8
    Join Date
    Sep 2008
    Location
    UK
    Posts
    3,670
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Ible View Post
    Do u mean

    PHP Code:
    <?php

    $ip 
    $_SERVER['REMOTE_ADDR'];

    echo (
    'Your IP is: <br />'.$ip);

    ?>
    or

    PHP Code:
    <?php

    $ip 
    $_SERVER['REMOTE_ADDR'];

    echo 
    "'Your IP is: <br />$ip");

    ?>
    No. I mean
    PHP Code:
    <?php

    $ip 
    $_SERVER['REMOTE_ADDR'];

    echo (
    'Your IP is: <br />$ip');

    ?>
    Back for a while.

  9. #9
    Join Date
    Jun 2008
    Location
    United Kingdom
    Posts
    2,015
    Tokens
    568

    Latest Awards:

    Default

    Quote Originally Posted by Excellent2 View Post
    No. I mean
    PHP Code:
    <?php

    $ip 
    $_SERVER['REMOTE_ADDR'];

    echo (
    'Your IP is: <br />$ip');

    ?>
    But that wouldn't work bbz, single quotes.

  10. #10
    Join Date
    Aug 2005
    Location
    London
    Posts
    9,773
    Tokens
    146

    Latest Awards:

    Default

    Possible via Javascript:
    Code:
    var ip = '<!--#echo var="REMOTE_ADDR"-->';
    either use document.write or use a popup to display it .

Page 1 of 3 123 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
  •