<% # This page performs a number of different functions depending on how it's # accessed. # Therefore the content needs to be contained inside a Tcl "if statement". # Here's the "if statement". If you modify any of the text, make sure you # put a backslash before any embedded quotation marks you add. if { $page_function == "view" } { set page_contents "Saved on $saved_date " if { $product_counter == 0 } { append page_contents "Your Shopping Cart is empty." } } elseif { $page_function == "retrieve" } { set page_contents " " } elseif { $page_function == "discard" } { set page_contents " " } # OK, that's all the Tcl. Not too bad. Just make sure that all embedded # quotation marks have a backslash before them (\"), otherwise you'll get # an error. %> <%= $page_contents %>
$shopping_cart_items