not to mention that if you're using some sort of client functionality to get the ip address, you're getting the machines ip address which has a pretty good chance of being a private ip address and totally worthless to you.

You need to help this person by teaching them how to get the ip address using Perl. And It pretty much works the same way as it does with witango. you're looking at a CGI_PARAM



/John

Ben Johansen wrote:

There is no native way I have found as of yet.
You can try using the SSI Script

<pre>
var ip = '<!--#echo var="REMOTE_ADDR"-->';
alert("Your IP address is "+ip);
</pre>

Why are you trying to get the IP Address?
The IP Address isn't necessarily unique. You could have a whole company
of computer that will result in the same IP address


Ben Johansen - http://www.pcforge.com
Authorized Witango & MDaemon Reseller Available for Witango Developement



-----Original Message-----
From: Stefan Gonick [mailto:[EMAIL PROTECTED] Sent: Thursday, February 05, 2004 3:42 PM
To: [EMAIL PROTECTED]
Subject: Witango-Talk: [OT] Get IP Address in Javascript


Hi Everyone,

First of all, I know how to get an IP address using Witango.
However, I need to help someone who is using an HTML
form with formmail.pl get the visitor's IP address and assign
it to a hidden field. I assume that Javascript has this ability.
Are there any Javascript programmers out there that know
how to do this?

Thanks,
Stefan

========================================================
Database WebWorks: Dynamic web sites through database integration
http://www.DatabaseWebWorks.com


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf




________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to