I'm new to CakePHP(day of reading documentation is pretty much my experience) but If it was me doing it I would instead of using forms I would just add links in the form /produtcs/addtocart/45 or /products/addtocart/VeryNiceProduct and then use the flash function to redirect back to the products page noting which products are added to the cart. Like I said before I am very new to CakePHP so I may be completly off. Could someone please give me so feedback on my idea. I would like to know if my idea makes sense just in case I find myself in the same position. Thanks.
On Mon, Jan 12, 2009 at 6:05 AM, Chris Hawes <[email protected]> wrote: > > Hello, > > I'm currently working on an e-commerce application. > > On the product pages, I am generating a form to add products to the > cart. As such, each page can contain several forms. > > I've created a helper for my application which contains: product > display; add to cart form generation; menu generation for the cms; > etc. > > My helper uses the Form and HTML helpers. > > Each form I create has the same ID (CartAddForm) as each form has the > same action. > Also, each field within the form shares the same ID with the form > elements in the other forms (eg. CartProductDescription). > > As such, the pages fail validation. > > Can anyone immediately think of a way around this? > > Thanks, > > Chris. > > > > -- Rogelio Nodal --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
