# URGENT write varible flash to text file

**URL:** https://forum.kirupa.com/t/urgent-write-varible-flash-to-text-file/105750
**Category:** Uncategorized
**Created:** [March 29, 2004, 3:58pm UTC](https://forum.kirupa.com/t/urgent-write-varible-flash-to-text-file/105750 "2004-03-29T15:58:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![mid\_ori](https://avatars.discourse-cdn.com/v4/letter/m/7cd45c/32.png) [@mid\_ori](https://forum.kirupa.com/u/mid_ori)
#### Post date: [March 29, 2004, 3:58pm UTC](https://forum.kirupa.com/t/urgent-write-varible-flash-to-text-file/105750/1 "2004-03-29T15:58:24Z")

</div>

hi,  
i’m having a problem writing from flash on a localhost apache server to a text file, all i want to do is catch one varible called email, so it makes up a list in the text file.

i’m in a real rush to get this done so any help is very appericated.

my as code is

```auto

submit.onPress = function() {
	loadVariablesNum ("write.php", 0, "POST");
}

```

and php code is

```php

<? 
$email = $_POST['email'];
if($REQUEST_METHOD == 'POST'){ 
$file = "textdata.txt"; 
$fp = fopen($file, "a+"); 
fwrite($fp, $_POST['email'] . "
");fclose($fp); 
} 
?> 

```
