Flash to PHP

Hey Guys,

Im working on a quote system using a shopping cart script.
Im having a problem taking the data from the cart and transferring it to variables for php?? im lost. Heres how it is currently for connecting to paypal. Im looking to have it just go straight to a mysql database and store the info they are requesting… so no paypal. Thanks!!

function purchase() {
    paypal = new LoadVars();
    paypal.cmd = "_cart";
    paypal.upload = "1";
    paypal.business = "od@gotflow.com";
    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;