Forum Moderators: open

Message Too Old, No Replies

Hidden form value that gets REMOTE ADDR

Attempting to replicate what was done once before

         

tangor

11:08 pm on Nov 4, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



No code for this form exists at present, but it worked this way once (according to client). Does NOT want their cgi modified, just wants this form variable to again "work"

Best I've come up with is:

<input type=hidden name="IP" value="$_SERVER['REMOTE_ADDR']">

and of course it does not work.

Apache, HTML... just wants to include this above info with the rest of their form data which does process properly. Seems like a call similar to above should do the job. Any pointers would be appreciated!

tangor

11:58 pm on Nov 4, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



One other criteria: no PHP or ASP or JAVA. According to the client there was a line added that just returned the IP and their CGI processed it.

daveVk

3:20 am on Nov 5, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



[javascript.about.com...] shows possible methods, most/all seem to be on your banned list.

tangor

3:55 am on Nov 5, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Yes, sadly. I have log entries for a previous form, now lost, which indicates it DID, via HTML/APACHE get the ip as a hidden and inserted that data into the log. Driving me nuts. With the plethora of asp, java, php code out there (several billions of billions) I'm getting no joy for the call...

Help!

jdMorgan

4:00 am on Nov 5, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Using Server-Side Includes (SSI) :

<input type="hidden" name="IP" value="<!--#echo var='REMOTE_ADDR' -->">

Jim

[edited by: jdMorgan at 4:01 am (utc) on Nov. 5, 2008]

tangor

6:37 am on Nov 5, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Muy Grande jdMorgan! Pointed right direction (I think!) I'll let you know!