Helping ordinary people create extraordinary websites!
Scripts Directory JavaScript Scripts Visitor Iinformation

IP address Display (using SSI and JavaScript)

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: Www.javascriptkit.com   Version: 1
Price: free   Demo: n/a
Platform(s): All   Download Script: n/a, visit site to access
 30 Votes

More JavaScript Visitor Iinformation Scripts: