Jesse
Active Member
- Messages
- 1,360
- Reaction score
- 0
- Points
- 36
To Get And Show The IP via Javascript
To show the IP via JavaScript
To show IP via ASP
request.ServerVariables("REMOTE_ADDR")
____________________________________
TO SHOW IP VIA PHP
To show the IP via JavaScript
_______________________________________________var ip= '<!--#echo var="REMOTE_ADDR"-->';
document.write("Your IP Address is :"+ip+" ");
To show IP via ASP
request.ServerVariables("REMOTE_ADDR")
____________________________________
TO SHOW IP VIA PHP
Code:
<?
$remote_address = getenv("REMOTE_ADDR");
echo "Your IP address is $remote_address.";
$browser_type = getenv("HTTP_USER_AGENT");
echo "You are using $browser_type.";
?>