"Usually you would do something like that by requiring them to register and log in first. Then you can save the userID with the order so that after the purchase you can return a list of purchased products for download."
Ray I have a "products" page that the client registers from. Then that product id that they chose with the registration is passed on as a URL variable.
Then on the actual Products page with the 'Add To Cart' buttons the form below needs to be submitted on page load so that the product that was passed with the URL variable goes into the shopping cart.
$pack_id is the URL variable.
--------------------->
<?php echo $pack_id ?>
<form name="TYJLandAccess_1_ATC_<?php echo $pack_id; ?>" method="POST" action="<?php echo $_SERVER["PHP_SELF"]; ?><?php echo (isset($_SERVER["QUERY_STRING"]) && $_SERVER["QUERY_STRING"] != "")?"?".htmlentities($_SERVER["QUERY_STRING"]):""; ?>">
<input type="hidden" name="TYJLandAccess_1_ID_Add" value="<?php echo $pack_id; ?>" >
<input type="text" name="TYJLandAccess_1_Quantity_Add" value="1" size="1" >
<input type="submit" class="btn btn-primary btn-sm" value="ADD TO CART" style="width:100%;border-radius:0px;" name="TYJLandAccess_1_ATC">
</form>
--------------------->
How do I do submit the form on page load?


