Everybody! This is important. In a few days, these forums will be moving over to using the totally sweet Discourse platform. To ensure this migration happens smoothly with no loss of content, these forums are currently in a read-only mode. I do apologize for the inconvenience.

There is never a good time to turn the forums off for an extended period of time, but I promise the new forums will be a billion times better. I'm pretty sure of it.

See you all on the other side in a few days, and if you have any (non-technical) questions, please e-mail me at kirupa@kirupa.com. For technical questions, try to find a tutorial that corresponds to what you are looking for and post in the comments section of that page.

Cheers,
Kirupa

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