Loadvars php not working on webserver

Hi,

I developed a relatively simple credit card processing form in flash that takes the customer data via method=post and sends it to a php script which validates the card transaction as approved or declined and then sends back a code to the flash card process form. If the card is declined it goes to one page and if it is approved it goes to another page where the customer is given a download link for the product.

The problem I am having is that the form is not going to any of the next page swhen the form is running either in the browser on a web server that I have installed locally or on the webserver that it will reside on. It does however work perfectly in control -> test movie under flash. I know the php script is receiving the data because I changed the sendAndLoad to just send and tested what variables are being received by the php script.

Here is the code for the on(release) portion of the button:

loader.onLoad = function(success) {

if(success)
{

// read your data here, e.g.
_root.transstatus = this.transstatus;
errorcode.text = this.transstatus;
if (_root.transstatus == 1)
{
gotoAndStop(5);
} else {
gotoAndStop(4);
errorcode.text = “There was an error”;
} // end if-else
} // end if success

} // end onload

sender.all = convert(_root.cardnumber) + “,” + convert(_root.cvcnum) + “,” + _root.firstname + “,” + _root.street + “,” + _root.city + “,” + _root.clientstate + “,” + convert(_root.zipcode) + “,” + _root.expmonth + “,” + _root.expyear + “,” + _root.lastname + “,” + crdsel;
sender.sendAndLoad([COLOR=#810081]“http://www.heavensmessage.com/newflashtest/process2.php”[/COLOR], loader, “post”);

I am at wits end on this I have spent about 12 hours writing and rewriting the code but to no avail :frowning:

Please help…

Thanks!