I've made a form that logs certain information to a log file called log.html. But i don't know how to make it log the ip of the person that pushed the submit button.
It logs everything else but id like it to log the ip address too but can't for the life of me figure out how todo it. The form is inside a cgi script also.
you need to access the http variables.
REMOTE_ADDR is the IP, so in PHP it'd be $REMOTE_ADDR, cold fusion #REMOTE_ADDR#. Etc
are also commonly used ones.
thanks but how do i get it to print the remote ip to the log file?.
the same way you print the other variables you are logging.
You can refer to it just like any other variable.