Greetings! I hope you guys can help me. I'm working on adding a shopping cart to our site, but they do a terrible job of offering tweaks to their embed link code.
I'm trying to create a form that will have the user choose the size they want and input the quantity and then on submit, assemble the URL and send them there.
For instance, this is the URL that links to the cart
Where the pid= is the product id and the quantity will be the quantity someone wants to buy.
I tried to create thise form, but it doesn't seem to be working:
<form action="" method="post" name="form1" onsubmit="window.location='http://www.example.com/shop/cmd.php?pid=' +document.form1.selectfield1.value +&HTML='&qty=' +document.form1.textfield1.value; return false;"><select size="1" name="selectfield1"><option value="0" selected>Choose your size</option><option value="cf17eb9161924ed6847abc14428f35db&bn=1">10oz</option><option value="85cb1ca070ba40b2a156239f5d8415e9&bn=1">32oz</option></select><input type="text" name="textfield1" value="1" size="2" maxlength="3" /> <input style="border: 0;" type="image" name="submit" src="http://www.example.com/netcart/images/cart_buttons/cart_button_6.gif" alt="submit" /></form>
I'd appreciate any help
[edited by: incrediBILL at 6:03 pm (utc) on May 15, 2012]
[edit reason] fixed URLS, use Example.com [/edit]