HTML and CSS Reference
In-Depth Information
are special configuration needs. Add anchor tags around the image to indicate
that it is a special link to the cart. The XHTML follows:
<a href="http://www.webdevfoundations.net/scripts/
cart.asp?view=yes"> image tag goes here </a>
Save your page and test it in a browser. It should look similar to the one shown in Figure
12.17. Click the Add to Cart button for the JavaJam shirt. The demonstration shopping
cart will display and your screen should look similar to the one shown in Figure 12.18.
Experiment with the cart and try to purchase both items. Simulate placing an order, as
shown in Figure 12.19. The shopping cart and order pages are for demonstration pur-
poses only.
Figure 12.18
A Shopping Cart
page created by the
server-side script
that processes the
shopping cart and
order
Figure 12.19
An Order page
created by the
server-side script
that processes the
shopping cart order
FAQ
How does the cart.asp server-side script work?
The cart.asp file is an ASP script. It is coded to accept a number of form fields and process
them. It creates a Web page based on the values and fields that were passed to it. Table 12.3
shows the form fields and values used by the cart.asp file.
Search WWH ::




Custom Search