Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Re: Capture an IP Number

Quote Reply
Re: Capture an IP Number In reply to
1) Add Field to your links.def file called IP.
2) Update your database using the upgrade.pl file located in a number of Threads in the Links 2.0 forum.
3) Add the following codes in your sub site_html_add_form and sub site_html_add_failure in the site_html_templates.pl:

Code:

my $ipaddress = $ENV{'REMOTE_ADDR'};


Then define the following tag in these subroutines:

Code:

IP => $ipaddress,


4) Then add a hidden field to your add.html and add_error.html file:

Code:

<input type="hidden" name="IP" value="<%IP%>">


That should take care of storing the IP address...although be aware that IP addresses are not the most reliable data to record your visitor's activities, since IP addresses are assigned dynamically via most dialup connections.


Now for the second part of your request...I don't really understand what you want to do.

Regards,

Eliot Lee


Subject Author Views Date
Thread Capture an IP Number nduque 2276 Sep 22, 2000, 1:34 PM
Thread Re: Capture an IP Number
Stealth 2223 Sep 22, 2000, 7:56 PM
Thread Re: Capture an IP Number
nduque 2196 Sep 22, 2000, 10:50 PM
Thread Re: Capture an IP Number
Stealth 2191 Sep 22, 2000, 11:54 PM
Thread Re: Capture an IP Number
nduque 2180 Sep 23, 2000, 3:02 AM
Thread Re: Capture an IP Number
nduque 2150 Sep 26, 2000, 12:50 AM
Thread Re: Capture an IP Number
Stealth 2142 Sep 26, 2000, 7:56 AM
Post Re: Capture an IP Number
nduque 2141 Sep 26, 2000, 12:55 PM