Collecting Other Information from Customers - Simple Surveys

This example page shows how to use the information gathering ability of Americart, where you can pass information to the final order without it having to be a line item or product shown in the cart display. The page uses the multi-item format, and is an excellent illustration of several tags, vars, and features:

s u r v e y
[use of the =info= tag, the =NA= tag, the req variable,
a standard submit button, and multi-item submission]

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!

Your age:

First On line purchase?

    <p>
<strong>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!</strong>
</p>
<form action="http://www.cartserver.com/sc/cart.cgi" method="post">
<!-- Info item one -->
<input type="hidden" name="item_1" value="s-8882^=info=^Survey Age?^1^1" />
<input type="hidden" name="req_1" value="op1=You must supply your age." />
Your age:
<input type="text" name="op1_1" />
<p>
<!-- Info item two -->
<input type="hidden" name="item_2" value="s-8882^=info=^Survey 1st Purchase?^1^1" />
<input type="hidden" name="req_2" value="op1=Please answer yes or no to the first On line purchase question." />
First On line purchase?
<select name="op1_2">
<option value=""> Yes/No </option>
<option value="yes"> Yes </option>
<option value="no"> No </option>
</select>
</p>
<p>
<!--Free Gift -->
<input type="hidden" name="item_3" value="s-8882^=NA=samp-1^Cologne Sample^0.00^1" />
<!-- notice that we used the =NA= tag also to keep people from increasing qty. -->
<!-- this hidden var (add.x) simulates the graphic images we usually use -->
<input type="hidden" name="add.x" value="1" />
<input type="submit" value="Submit my survey and dont forget my gift!" />
</p>
</form>
View the code for the above example to see how it's done.

Copyright. All rights reserved. Americart - 2011