Getting variables from a form into a flash file?

Let’s see if I can explain this…

My chat runs off of php,flash and a txt file to log it.

I’m giving the users to create their own “hub” or chat window. They enter their hub name into a field and it creates a txt file which is just a new log file (in essence)

(Everything has gone good up until now)

After they have created their text file they go to a seperate page to enter their “hub’s” name (the textfile they created). This is the part that I’m struggling with.

My form for them to enter their hubs is this:

<form action="./hubchat/shout.php" method="post">
Enter The Hub ID <input type="text" name="txtfile" />
<input type="submit" />

the shout.php is the main file that the flash file runs off of.

The main thing I’m trying to do is what the users hub name is posted as a variable into the shout.php file. Normally it isn’t a variable. it is just shout.txt this wouldn’t be a problem, but I don’t know how to carry the variables over from the php file to the flash file.

The .fla file is located here:

the shout.php file can be located here:

If anyone could help me figure out how to do this I would be grateful. I’ll even put a helped by in the hubs :snug:

Edit: whenever I try putting a $POST and running a flash file I get this whenever it tries to write to the file: