Got The IP Send Set Up. Just need Help on Flash. Easy

Ok, I got this code from someone at the server-side forums, can’t really remember his name. It’s a php file that sends the name you type in along with your IP address to a file called myText.txt. If anyone here wants to try the code out, go ahead:getAddr.php:

<html>
<body>
<?php

    if(empty($_POST["nickname"]))
    {
?>

		<form method="POST">
		<input type="hidden" name="ipAddr" value="<?php echo $REMOTE_ADDR ?>">

		<input type="text" name="nickname">
		<input type="submit" value="submit">

<?php
	}
    else
    {
        $fp = fopen("myText.txt", 'a');

        fwrite($fp, $_POST["nickname"] . ": " . $_POST["ipAddr"] . "
");

        fclose($fp);
    }
?>
</body>
</html>
  • It works like a charm, everytime someone types in a name, I can view there name + IP. Now, the only problem is, how would I do this in flash using this PHP code? What variables would I set up and what button actions should I put?

  • I’m guessing that the place where you type in your name, its variable, is called nickname, correct? I’m not sure but I’m thinking the IP address variable is ipAddr, right? Now, what actions would I put to show the IP in Flash? And how would I send these variables to myText.txt on a click of a button using this file??? Would it be loadVarsNum? Please help!!! :(.