A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: using components and PHP

  1. #1
    Hey there folks. I have an MC that has some input text fields and a couple checkbox components. I want to take the info from those text fields and the checkboxes and send them to a PHP script.

    I am having some success using this attached to the submit button I made:

    on (release) {
    loadVariablesNum("emailform.php", "0", "POST");
    gotoAndStop(2);
    }


    however, it doesn't pick up anything from the checkboxes.

    How do I get it to send the info from the checkboxes and from the text fields to the PHP script?

    Thanks! I hope I can get a solution. I'm getting a little antsy.

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Posts
    705
    your are currently sending only the variables that exist in that specific timeline. You will need to send the variables from the check boxes to that same timeline. It might be as simple as placeing this inside the check box.
    _parent.myVariable = myVariable;

  3. #3
    when you say placing that inside the check box, what do you mean? As far as where do I put that line of script?


  4. #4
    Junior Member
    Join Date
    Mar 2002
    Posts
    6
    In the actionscript for that component.. select the checkbox, then click on the actions bar and put it there.

  5. #5
    I tried, but to no avail. I did just as you said, and it still doesn't show up. Any other ideas? Am I missing a piece of the puzzle here?

    I wish I understood these components more...

    Is there a non-component way of making a checkbox that will send to a PHP form?

    I'm stumped, any help would be wonderful.


Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center