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 cannoubmits 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.


Download from: Homepage




Author:
admin
Time:
Saturday, May 10th, 2008 at 9:23 pm
Category:
Uncategorized
Comments:
You can leave a response, or trackback from your own site.
RSS:
You can follow any responses to this entry through the RSS 2.0 feed.
Navigation:

Leave a Reply