Clock Crew

Community => Flash & Flash Accessories => Topic farted by: INoodleClock on January 13, 2011, 09:54:08 AM

Title: Using PHP with AS2.
Post by: INoodleClock on January 13, 2011, 09:54:08 AM
I made a basic script for a contact form, which sends the fields to a stated email address. The only Actionscript is:

on (release) {
form.loadVariables("locationofphp.php", "POST");
}


The problem I'm having is this script works fine on multiple different email types (tested on Yahoo, Hotmail, Mail and Outlook) when the whole .swf is only one frame. However when this is placed onto something with more (I'm doing a small site, due to transitions, preloader etc. this contact form sits on frame 16) frames, the script stops working.

Does anyone know why this might be and is there a simple way to get around this? Putting it into a separate .swf isn't really an option due to the transitions and navigation. Thanks in advance for any help. :)
Title: Using PHP with AS2.
Post by: SpongeClock SquarePants on January 14, 2011, 07:23:27 AM
are the variables within the form avalaible when it is submitted?
You could also not only trace some vars in flash but log them with php, then you can see what locationofphp.php receives.
Title: Using PHP with AS2.
Post by: SpongeClock SquarePants on January 20, 2011, 06:37:49 AM
and did you figure it out?