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
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
Monday - what a way to spend a seventh of your life
Not too sure what you are trying, but to create a hidden feild try;
Out of interest, what are you working on?<INPUT TYPE="HIDDEN" NAME="IP">
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
Monday - what a way to spend a seventh of your life
What are you doing on the server end? Wouldnt it be easier to do this there?
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.
Monday - what a way to spend a seventh of your life
Does the host offer any cgi at all? PERL Maybe?
yes we have access to cgi, perl, mysql and php
Monday - what a way to spend a seventh of your life
You should be able to do it..... but I'm not to good yet with perl and I have no php skill at all.
Have a peek at this.
I found the site today and it has a lot of examples for PERL, PHP and JavaScript.
Might have some ideas here....
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.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
>>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?
If you have code running on the client, get the MAC adress of the modem/NIC. That will get you even those in LAN's.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
I think i may revert to cookies - a cookie javascript seems easier.
As for trapping the mac address of a modem - how do you do that? this is not for my site - just out of interest.
>>As for trapping the mac address of a modem - how do you do that? this is not for my site - just out of interest.
I didnt know you could do that.
Use a NCB and Netbios().
But if you can get the MAC there is no other MODEM/NIC with that number -> positive ID of PC.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
Use a NCB and Netbios().
But if you can get the MAC there is no other MODEM/NIC with that number -> positive ID of PC.
Yeah I know..... but how do you access that with JavaScript?
Is it possible????????????