Helping ordinary people create extraordinary websites!
HOME TUTORIALS SCRIPTS WEB HOSTING BLOG FORUM
Get Our Newsletter
Email:
 
Display IP address script

This script captures the IP address of the person filling in your form and submits it to you as part of the form. The IP address is displayed in a text box which the user cannot edit. The script works by taking the #echo var="REMOTE_ADDR" from SSI and using JavaScript to place it in the text box. Although it is possible to do it with JavaScript alone, this only works with Netscape and as far as I can tell, using SSI is the only cross browser way of doing it. You will need a web server capable of running SSI (most web servers do this by default). The page with the form in it needs to have the suffix .shtml to tell the server to parse it.

Author: JavaScript Kit
Price: Free
Version: 1.0
Platform(s): All
Rating:
Total Votes: 17
Demo: View it
Download Script: click here

Visit Site | Bookmark | Digg It! | Stumbleupon! | Send to a Friend | Report Bad Link


More JavaScript User Information Scripts: