I add three fields in link.def called IP; Domain; Host, this field will be hiddenly added thru the add.html using
<%IP%> , <%Host%> & <%Domain%>, it works fine in add.html but if a user mofify their submission this information will not be overwrited with the new IP, Domain & Host, how to overwrite this info when a user modify a submission?
This is just for reference.
in site_html_template.pl I added the following:
# USED BY: gethostbyaddr
use Socket;
my $ipaddress = $ENV{'REMOTE_ADDR'};
my $hostname = scalar(gethostbyaddr(inet_aton($ipaddress), AF_INET));
my $hostdomain = $1 if $hostname =~ /.*\.([^.]*\.[^.]*)/;
print &load_template ('add.html', {
IP => $ipaddress,
Domain => $hostdomain,
Host => $hostname,
The information above is what I add, not the full add_form.
Thanks in advance,
Nuno Duque
--------------------
Macau Search Engine
searchmacau.com
<%IP%> , <%Host%> & <%Domain%>, it works fine in add.html but if a user mofify their submission this information will not be overwrited with the new IP, Domain & Host, how to overwrite this info when a user modify a submission?
This is just for reference.
in site_html_template.pl I added the following:
# USED BY: gethostbyaddr
use Socket;
my $ipaddress = $ENV{'REMOTE_ADDR'};
my $hostname = scalar(gethostbyaddr(inet_aton($ipaddress), AF_INET));
my $hostdomain = $1 if $hostname =~ /.*\.([^.]*\.[^.]*)/;
print &load_template ('add.html', {
IP => $ipaddress,
Domain => $hostdomain,
Host => $hostname,
The information above is what I add, not the full add_form.
Thanks in advance,
Nuno Duque
--------------------
Macau Search Engine
searchmacau.com