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

**URL:** <https://forum.kirupa.com/t/got-the-ip-send-set-up-just-need-help-on-flash-easy/94650>\
**Category:** Uncategorized\
**Created:** [November 14, 2003, 11:49pm UTC](https://forum.kirupa.com/t/got-the-ip-send-set-up-just-need-help-on-flash-easy/94650 "2003-11-14T23:49:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![REEF](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@REEF](https://forum.kirupa.com/u/REEF)\
**Post date:** [November 14, 2003, 11:49pm UTC](https://forum.kirupa.com/t/got-the-ip-send-set-up-just-need-help-on-flash-easy/94650/1 "2003-11-14T23:49:13Z")

</div>

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** :

```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!!! :(.
