PDA

View Full Version : Email form in swf is not working locally


DoubleU
08-30-2006, 07:51 PM
Hi,

Searching many hours in many threads gave no answers.

Having a swf with an email form, which is working fine on the server together with the HTML and PHP file, but same swf does not receiving input when used from the pc locally. Got the direction to the php file on the server in the loadVariablesNum in the right level. Have further not made any change.

Why is the form not receiving the vars and the same form does that on the server all the way right. What can I do to make the script work. I need to put the swf into a CD, so it should work properly from any computer locally.

I appreciate your help.
DoubleU:mad:

Cota
08-30-2006, 08:18 PM
Will this form always attempt to connect to your server for the php file? php wont run locally unless you have apache setup on the local machine. Another thing to try is using loadvars().

DoubleU
08-30-2006, 08:38 PM
Hi Cota,

Thank you for anwering me.

Yes, the server is running Apache and I had some days ago a normal response from the server using the swf from my computer. For some reason it doesn't respond anymore. But on the remote server the same movie is doing well.

Have not much knowledge of AS.

The code is: loadVariablesNum("http://www.my_website/mail.php",0);
What should I write instead?
DoubleU:(

DoubleU
08-30-2006, 08:49 PM
Hi Cota,

Thank you for anwering me.

Yes, the server is running Apache and I had some days ago a normal response from the server using the swf from my computer. For some reason it doesn't respond anymore. But on the remote server the same movie is doing well.

Have not much knowledge of AS.

The code is: loadVariablesNum("http://www.my_website/mail.php",0);
What should I write instead?
DoubleU:(

The right code is: loadVariablesNum("http://www.my_website/mail.php",0,"POST");

Sorry, did not look good!:o

DoubleU.

Cota
08-30-2006, 09:18 PM
What changed from when it was working to when it stopped?

DoubleU
08-30-2006, 09:38 PM
Hi Cota,

That's the strange thing. I had it copied from the server and did not need to change anything as the srcipt was already in its place, just as I did show you.

The PHP file is in the root of the domain. And there are no levels.

Making a projector there was no change. Really to get mad. There should be a solution, a dot, a _, something incredible unsignificant, that should make it work.

I hope you can find it.
It's now 22.33 here in Holland, so as I've to work very early tomorrow, I'll be here again at around 15.00 DutchTime.

Till then, hope you found the solution, one or the other way.
Thanks,
DoubleU