I just added an option to send a text message to my cellphone on my site… I wanted to know if there’s a way to get a users IP address using ActionScript, so that I can get it in case someone decides to stalk me…
Raf
Not in AS, but through PHP you can. How to go about that with your form I have no clue.
i don’t think that is possible with as …
but you can use php [size=1]assuming that your server supports php :P[/size]
a quick example would be something like …
<?
echo "&ip=$REMOTE_ADDR&";
?>
then place a dynamic text field on the stage with the variable “ip”[ no quotes ] [size=1]variable … not instance name[/size]
and add this script to the timeline
this.loadVariables("file.php");
=)
[size=1][ edit ]
hmm … lost beat me :-[/size]
this has been brought up before. Kax nailed the php example mentioned in that previous thread (here):
http://www.kirupaforum.com/showthread.php?s=&threadid=11773&highlight=ip
though there is also an asp version mentioned there as well
search
IP
address
ipaddress
php
asp
there it was
i ran a search and couldn’t find that thread :-\
it’s easier just posting the link than having to explain it here
or in cgi :
$ip=$ENV{'REMOTE_ADDR'};