Expermenting...Should Be Easy!

Hey guys. I’m experimenting with flash and I need some help:

  • There’s a variable called address. Question: How can I make this variable show the IP address of a person using php?

  • There’s another variable called nickname. This is just name for people to put in.

  • There’s a button.

Question: After clicking the button…How would I send both these variables to a notepad in a ordered way (I mean like showing your name with your IP next to it)? And each time someone clicks this button, the vars are sent to the notepad in lines. I also need the variables to be saved to the notepad so I can view it.

  • Thanks.

I am not sure if you can retrieve the IP address inside flash. You might have to use a server side scripting language like PHP or ASP.

Never Mind. I changed your code to Jubba’s counterscript code and edited it…a lot. And it works perfectly with flash. One thing that still doesn’t happen is that the variable ipAddr doesn’t show the IP. I set my php code to:

$ipAddr = $HTTP_SERVER_VARS["REMOTE_ADDR"];