Jump to content

name vs. id on product page <form>


markscarts

Recommended Posts

Name attribute and id attribute must be identical on an element to be valid. In the CubeCart skins, for instance Kitablue, the form tag on line 13 uses the productId from database as an id for the form, while the name is set as "addtobasket" leading to invalid html code.

My question is, Is it necessary to have the id set as product id, or put another way, what will be the effect on function, if any, if the id is set as "addtobasket"?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...