Forum Moderators: open

Message Too Old, No Replies

Flash form problem

Form sending variables via GET instead of POST

         

MarkAD

3:44 pm on Jan 23, 2008 (gmt 0)

10+ Year Member



Hi,

I've got a simple Flash based form, it needs to write data to a MySQL database when the submit button is hit. A PHP script takes care of this.

I'm using the code:

on (release) {
getURL("URL of script", "", "POST");
}

Behind the submit button - with the actual URL to the PHP script in.

The problem is when I submit the details the variables seem to be passed to the URL and appear in the address bar, like a GET array, and a blank record inserted into the database.

Theres nothing wrong with the PHP script that I can see as it works fine with a HTML form.

Anyone any ideas?

Thanks.

dani_gas

6:11 pm on Jan 23, 2008 (gmt 0)

10+ Year Member



try :

getURL("your PhP", "_self","POST");

or

getURL("your PhP", "_self","GET");// in the PHP file replace POST with GET

i hope it work .