In several pages of an e-shop site, I have multiple forms on the same page.
I have same objects "productID", "quantity" in these forms at the same page
These forms are used to add different prouduct to the shopping cart. Each form submit to the "add_to_cart.php" with two objects of the same names, "productID", "quantity".
But after I hand this site to the client. The client will have his own graphic designer to edit some design small details formats etc. once a while. But almost 4 in 5 times, after his designer edit the page format (even he claimed he never touch the programming part.), the page was not working.
Because when he moves the codes block around, for example, due to form1 and form2 both have the "productID", "quantity" form objects, the dreamweaver automatically change the "productID", "quantity" in form2 to "productID2", "quantity2" ... when the desginer move the form2 around by cut and paste.
I have informed his designer to be careful about this, but it seems it will happen again next time.
Over the site, 7-8 pages may have 2 - 4 forms with the same form object in each page, it also affects 3 - 4 different php action pages.
I am thinking about a hard way is I will rename "productID", "quantity" to "productID1", "quantity1" in form1, "productID", "quantity" to "productID2", "quantity2" in form2 myself. And in my action php pages, I will check productID1 first, if not, check productID2 ...
This way, the php codes are ugly. But at least, the client's graphic designer will not "accidently rename" the form objects name with the "help" of dreamwever.
I hate to make the php action pages codes unclean but it will solve the problem, what do you do in the same kind situations? Is there a way to set dreamweaver not to rename the form objects automatically so I don't have to mess up my php codes to solve the problem?