lporiginalg
07-01-2007, 02:19 AM
Hi guys, I have a flash quiz that allows users to enter some comments at the end and save them to a text file, along with some other info(name, email, score) via PHP.
What's driving me crazy is I can run the flash movie in testing environment, click my submit button and it works, writing the desired changes to the text file on the remote server, using the GET method. Unfortunately when I upload the files to the actual server and run it from there, nothing happens when I click the submit button. At first I thought it was a problem with having changed the method to POST, but I tried live server testing with GET method and that wont work, but I can run the same file from inside flash authoring environment and it works fine :S
this is the as on the submit button that works in testing:
content_lv.sendAndLoad("http://mydomain.com/readAndWrite.php", content_lv, "GET");
The tutorial I got this from said to change the method to POST before uploading because GET is only for the testing environment, but it doesn't work either way after I upload it, it only works in testing, if anyone knows what could cause this please help me out, thanks alot.
What's driving me crazy is I can run the flash movie in testing environment, click my submit button and it works, writing the desired changes to the text file on the remote server, using the GET method. Unfortunately when I upload the files to the actual server and run it from there, nothing happens when I click the submit button. At first I thought it was a problem with having changed the method to POST, but I tried live server testing with GET method and that wont work, but I can run the same file from inside flash authoring environment and it works fine :S
this is the as on the submit button that works in testing:
content_lv.sendAndLoad("http://mydomain.com/readAndWrite.php", content_lv, "GET");
The tutorial I got this from said to change the method to POST before uploading because GET is only for the testing environment, but it doesn't work either way after I upload it, it only works in testing, if anyone knows what could cause this please help me out, thanks alot.