; To Get And Show The Ip Via Javascrip
Documents
Resources
Learning Center
Upload
Plans & pricing Sign in
Sign Out
Your Federal Quarterly Tax Payments are due April 15th Get Help Now >>

To Get And Show The Ip Via Javascrip

VIEWS: 12 PAGES: 1

  • pg 1
									To Get And Show The Ip Via Javascript

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

<?
$remote_address = getenv("REMOTE_ADDR");
echo "Your IP address is $remote_address.";
$browser_type = getenv("HTTP_USER_AGENT");
echo "You are using $browser_type.";
?>

								
To top