Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 25
  1. #11
    Join Date
    Jan 2008
    Posts
    3,711
    Tokens
    100

    Latest Awards:

    Default

    @ php.net
    - I don't use PHP.. Can i just make a site with .htm? And insert the codes..?
    Will anything change if i do that, or?

    THANKS, I would love to +rep you.. But you're Cautioned, so i can't..

  2. #12
    Join Date
    Dec 2007
    Posts
    412
    Tokens
    0

    Default

    Yeah, it doesn't have to be .php, I just usually save my HTML documents as .php if I'm logging anything. Must be a habit putting in .php!

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

    Latest Awards:

    Default

    @ php.net
    - Ok

    *Off topic* - Do you have a script/code that sends the IP number of someone, when they contact you? Like IP script.. ex. like clubhabbo.net > Contact Form, "You're IP Number Will Be Sent With This Form"

  4. #14
    Join Date
    Apr 2006
    Posts
    1,463
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by BigMuscle View Post
    @ php.net
    - Ok

    *Off topic* - Do you have a script/code that sends the IP number of someone, when they contact you? Like IP script.. ex. like clubhabbo.net > Contact Form, "You're IP Number Will Be Sent With This Form"
    Thats in their Panels eg Admins in DJ Panel can send alerts I think housekeeping has it www.habboring.com

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

    Latest Awards:

    Default

    But i had a html code before, that showed people's IP number, when they contact me through me fansite.. But i can't find it anymore.

  6. #16
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    If the form is being sent by e-mail, put this bit of code in:

    Code:
    <?
    if($_SERVER['REQUEST_METHOD'] != "GET") 
    { 
        $ip = $_SERVER['REMOTE_ADDR']; 
        //Turns the IP to a variable.
    } 
    
    $msg = " 
    Their IP Address:
    $ip 
    "; 
    // Sends the IP as a variable in the message.
    ?>
    If you need help with making the actual form PHP then let me know.
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


  7. #17
    Join Date
    Dec 2007
    Posts
    412
    Tokens
    0

    Default

    Quote Originally Posted by :Kosmickitten View Post
    Thats in their Panels eg Admins in DJ Panel can send alerts I think housekeeping has it www.habboring.com
    You're on the wrong track.

    Big-Muscle, a brilliant one has been written by Jamie Cassedy (not sure on his HxF forum username). ClubHabbo use this one too.

    http://www.clubhabboforum.net/showthread.php?t=55921

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

    Latest Awards:

    Default Almost :D

    Quote Originally Posted by iUnknown View Post
    If the form is being sent by e-mail, put this bit of code in:

    Code:
    <?
    if($_SERVER['REQUEST_METHOD'] != "GET") 
    { 
        $ip = $_SERVER['REMOTE_ADDR']; 
        //Turns the IP to a variable.
    } 
     
    $msg = " 
    Their IP Address:
    $ip 
    "; 
    // Sends the IP as a variable in the message.
    ?>
    If you need help with making the actual form PHP then let me know.
    Sorry, but i want people to see their IP number too.. Like, your IP Number is: 207.0.0.1 or something-..
    But it should come on the mail too.

  9. #19
    Join Date
    Nov 2007
    Location
    London
    Posts
    1,577
    Tokens
    36

    Latest Awards:

    Default

    Sure, make the page they are viewing .php and put this code where you want their IP to show:

    Code:
    <? 
     // Below line will get the IP address from their browser
    $ip = getenv("REMOTE_ADDR") ; 
     echo "Your IP was logged for security:" . $ip; 
      ?>

    If that doesn't work let me know - but it should.
    Kind Regards,

    Guy
    __________________

    Since 2007. Unbelievable Uptime. Web hosting, resellers, master resellers, linux VPS, windows VPS, shoutcasts, at the lowest prices on the net.
    Tech-Hosts.co.uk.


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

    Latest Awards:

    Default

    At above, never use php shortags unless the coding's for your own server.

Page 2 of 3 FirstFirst 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
  •