@ 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..
Printable View
@ 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..
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!
@ php.net
- Ok :D
*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
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.
If the form is being sent by e-mail, put this bit of code in:
If you need help with making the actual form PHP then let me know.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.
?>
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
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.
At above, never use php shortags unless the coding's for your own server.