I am attempting to add "cart" funtionality to my site. I have a page that displays multiple repeating records (that were selected from the previous page) and I've added two sort menu boxes and a submit button that work perfectly.
Now, into the same repeating row in the form, I want to place an "ADD TO CART" button that when pressed: 1)adds the specific record ID to a persistent "cart" string variable 2)and then places a checkmark into a checkbox for that record I have spontaneously typed some code, which I'm sure is mostly wrong, but it gives you an idea of the variable names, etc: //NEW "CART" PERSISTENT VARIABLE session.setAttribute("String rsBeachwear__cart,'Cart is Empty'"); //default cart variable value //NEW CART BUTTON <input type="submit" name="butCart" value="Add to Cart" onclick="form.action=((( rsBeachwear_cart = rsBeachwear.getObject("ID"))==null || rsBeachwear.wasNull())?"":rsBeachwear_cart)%>> //NEW ADDED-TO-CART CHECKBOX Was This Record Added to Cart? <input type="checkbox" name="cbCart" value="checkbox"> =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at: http://archives.java.sun.com/jsp-interest.html http://java.sun.com/products/jsp/faq.html http://www.esperanto.org.nz/jsp/jspfaq.jsp http://www.jguru.com/faq/index.jsp http://www.jspinsider.com