html form - writing ip to a hidden field

This is a discussion on html form - writing ip to a hidden field within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I understand that you can use hidden input fileds on html forms and i also know how to use a ...

html form - writing ip to a hidden field

I understand that you can use hidden input fileds on html forms and i also know how to use a javascript to trap someones ip address, is there any way of writing the ip address to a hidden filed?
thanks in advance

its a competition form and an attempt to block multiple entries i want to get the ip address of the user submitting it. I have setup a hidden filed to recieve the ip address and have written the javascript to get the ip address, im just having trouble writing the ip addresss to the hidden field

it probably would, but the server i am on is hired by a friend and wed ont have full root access, if there is a way to do it without root please let me know. We are however considering investing in our own server.

Just an observation on your proposed technique. Most ISP's allocate an IP address at connect time, and it varies from connection to connection. By storing and checking the address, you cannot be sure that you will block multiple entries.

>>Just an observation on your proposed technique. Most ISP's allocate an IP address at connect time, and it varies from connection to connection. By storing and checking the address, you cannot be sure that you will block multiple entries.

He he.... thats very true...... Maybe your best option is through cookies? Still open to abuse, but easier to manage...... And I think you can use them with Jscript... cant you?