# Flash Form Submittion (HELP!)

**URL:** <https://forum.kirupa.com/t/flash-form-submittion-help/199193>\
**Category:** Uncategorized\
**Created:** [August 31, 2006, 5:25pm UTC](https://forum.kirupa.com/t/flash-form-submittion-help/199193 "2006-08-31T17:25:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaronslife](https://avatars.discourse-cdn.com/v4/letter/a/b5a626/32.png) [@aaronslife](https://forum.kirupa.com/u/aaronslife)\
**Post date:** [August 31, 2006, 5:25pm UTC](https://forum.kirupa.com/t/flash-form-submittion-help/199193/1 "2006-08-31T17:25:12Z")

</div>

ok, so I’ve been trying to figure out what I’ve been doing wrong.

can anyone help me please?

```auto

on (release) {
    doLogin();
    friend_id = fid;
    trace (fid);
    loadVariables("http://whore.lifeofme.net/fstorm.php", friend_id, "POST");
}

```

I’ve been using this to try and submit data to a txt file… but it wont work :[

here is the php code I’ve been using

```php

<?php

#get friend id
$fid = $HTTP_POST_VARS['friend_id'];

#is fid a number?
if(!ctype_digit($fid))
{
#fid is not a number, kill script
exit(-1);
}

#fid is a number, proceed

#store fid log as an array
$log = file("db.txt");

#scan file for fid
foreach($log as $key => $value)
{
if ($fid == $value)
{
#fid is on the list, do not write it again
$writetolog = 0;
}
}

if ($writetolog != 0)
{
#fid is not on the list, write to end of file
$file = fopen("db.txt", "a");
fwrite($file, $fid . "
");
fclose($file);
}

?>

```

if anyone could help me solve my problem that would be great!!!

Thanks,

Aaron [[http://lifeofme.net](http://lifeofme.net)]
