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

    Default Your ip is : Code

    Need the code that send the ip with the contact from does any one have it or know where i cna get it

  2. #2

    Default

    Code:
    <?php
    $ip = getenv("REMOTE_ADDR") ;
    ?>
    Put that into a form thingy file.


  3. #3
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    NEVER have this

    PHP Code:
    <?php

    $ip 
    getenv("REMOTE_ADDR");

    echo(
    "<input type='hidden' value='$ip' name='ip>");

    ?>
    So basically NEVER have the IP defined on the actual form because someone can just say use Artmoney and change their IP.

    So always define their IP on the send.php file or whatever.

  4. #4
    Join Date
    Aug 2006
    Posts
    357
    Tokens
    0

    Default

    Thanks guys + Rep .. Do i just stick this on the top of my contact page.. And it shows as a php in macromedia is this right?

    EDIT: Whilst were on forms i was woendring if you could help me on this one
    <input type="submit" name="Submit" value="Submit" id="Submit" /> Were do i put and email address?
    How do i make thanks for your application screen after clicking submit?

    Thanks guys
    Last edited by Helpie; 19-03-2007 at 06:04 PM.

Posting Permissions

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