Hi there,

This is my first post (and first time working with flash in MANY years). I bought a flash/actionscript file for a drag and drop shopping cart. I've spent the last few days customising the file for my purposes (essentially to be able to customise my products which I have for sale, by dragging various accessories onto the product). Anyway, the file offers paypal integration via the following code:

function purchase() {
paypal = new LoadVars();
paypal.cmd = "_cart";
paypal.upload = "1";
paypal.business = "email@username";
paypal.currency_code = "USD";
for (n=0; n<cart.length && n<15; n++) {
paypal["quantity_"+(n+1)] = cart[n].qty;
paypal["item_name_"+(n+1)] = cart[n].name;
paypal["amount_"+(n+1)] = cart[n].price;
paypal.send("https://www.paypal.com/cgi-bin/webscr", "_blank", "POST");
orderform.submit.onRelease = purchase;

However, I don't want to use the cart to send to paypal, I'd quite like to take it back into my own PHP application. I've been trying and trying to no avail to get this info out of Flash and into PHP. I'm really baffled. Could anyone just show me quickly how I would get that information eg:

quantity_1=1&item_name_1=Hat&amount_1=12.99 into a post method to send to PHP? It seemed very logical to me how I would expect it to work, but everytime the PHP file just echos nothing...? I'm really hitting desperate times (and sleep depravation!)

Thanks in advance.