Results 1 to 1 of 1

Thread: getting variables from a form into a flash file?

  1. #1
    2
    posts
    Registered User

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

    Code:
    <form action="./hubchat/shout.php" method="post">
    Enter The Hub ID <input type="text" name="txtfile" />
    <input type="submit" />
    </form>
    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: http://wiicharged.com/hubchat/shout.fla

    the shout.php file can be located here: http://wiicharged.com/hubchat/shout.txt


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


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


    Last edited by a2xa; January 27th, 2008 at 05:32 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012