close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

JQuery Validation

Thread began 3/13/2018 4:23 pm by Daniel | Last modified 3/30/2018 11:07 am by Daniel | 496 views | 12 replies


"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">

How do I do submit the form on page load?

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...