
Please take the time to fill out this survey, and receive a free gift of a sample of our new cologne (with another purchase)! The information will be stored in the shopping cart and sent in with your order. Thanks!
View the code for the above example to see how it's done.
Notes:
- You can put an info gathering tag in with any product. It won't appear in the cart display, which is often good.
- We used a textual submit button rather than our usual graphical one. There is a hidden var you must include to do this reliably.
- Using a textual submit button will sometimes result in confusion due to browser cache of the filled out form.
- You don't need to have a free gift, of course. It just seemed to go well with the survey example, so we added it as the third item in the multi-item submission
- This example shows how to use the "req" variable in a multi-item environment. No more empty fields!