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.

Any ideas?.