help with variables
by rlonac
on
Sep 8, 2007 at 1:58:11 am
Hey Everyone,
I have a flash movie (ecard) that has a series of input text fields for the user to fill. I wrote a php script to recieve the posted variables and render the preview version with the variables. The server was running the php, but not showing the dynamic html.
I had forgotten that flash had called the php and so the php was talking to it without a place to display the new html.
So then I thought I would just bypass the php, create an empty movie clip and load the external swf with the varibles.
I am having trouble doing that, though. Here is the actionscript from my preview button:
Re: help with variables by Doccie on Sep 8, 2007 at 9:57:33 am
One way of doing this, is using the getURL approach. Using getURL in combination with POST or GET sends -all- the variables that are currently on the timeline (including textfields with variable names), to the url you specified.
Here's an example:
http://pastebin.coconut.se/?id=5550
Re: help with variables by Doccie on Sep 8, 2007 at 9:29:59 pm
If you can and wish... upload your .fla and .php file (rename it to phps so I can view the source, and be sure to take out any sensitive information like server password and such ^^) somewhere and I will have a look. I'm having trouble understanding what you mean. Are the other variables loading now and is it just the one variable that doesn't get passed or do none of the variables work?