I currently have a Flash Movie with lots of products. It works like a shopping site. In each of the products I have either a single "Add to Cart" button or both "Add to Cart" and a combo box that has product attributes that need to be added to the action script to transfer to the php. I have all the values and product_id from the MySQL database. I have what I think the php code is:
productinfo.php
PHP Code:
<?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?>
applicationtop.php
PHP Code:
// Shopping cart actions
if (isset($HTTP_GET_VARS['action'])) {
// redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled
if ($session_started == false) {
tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE));
}
if (DISPLAY_CART == 'true') {
$goto = FILENAME_SHOPPING_CART;
$parameters = array('action', 'cPath', 'products_id', 'pid');
} else {
$goto = basename($PHP_SELF);
if ($HTTP_GET_VARS['action'] == 'buy_now') {
$parameters = array('action', 'pid', 'products_id');
} else {
$parameters = array('action', 'pid');
}
}
I am not sure how to transfer the data of the combo box or just the "add to cart" button to the php page.
I dont necessarilly need to access the mysql database, because if there is a way to code the "add to cart" button to add product_id # whatever to the shopping cart I can hard code each product since we wont ever have more than 30-40 products. Any help would be very appreciated. I have been through countless forums to try and find an answer prior to posting w/o any luck.
Thanks in advance.
Mike