<%Option Explicit%> <%On Error Resume Next%> <% ' DECLARE VARIABLES dim rsData, itemnum, subtotal, salestax, shipping ' CONNECT TO THE DB DatabaseConnect If Err.number <> 0 then TrapError Err.number, Err.description ' GET THE PRODUCTS Set rsData=dbConn.Execute("SELECT ID, Title, Price FROM MCG_Products WHERE ID IN (" & getCartList & ")") If Err.number <> 0 then TrapError Err.number, Err.description ' GET THE NUMBER OF ITEMS IN THE CART itemnum=ItemsInCart() %> Your Invoice

Your Order

Please print out this order form using your browser's print feature (File Menu > Print) and send it to the Merrifield Consulting Group, Inc. using the contact information below. When you have printed the form, click here to return to The Merrifield Consulting Group home page.

Ship To:

<%=Request.Form("realname")%>
<%if len(Request.Form("company"))>0 Then Response.Write Request.Form("company") & "
"%> <%=Request.Form("address1")%>
<%if len(Request.Form("address2"))>0 Then Response.Write Request.Form("address2") & "
"%> <%=Request.Form("city")%><%if len(Request.Form("state"))>0 Then Response.Write ", " & Request.Form("state") else Response.Write ", " & Request.Form("providence")%>  <%=Request.Form("zip")%>
<%=Request.Form("country")%>
Phone: <%=Request.Form("phone")%>
Fax: <%=Request.Form("fax")%>

<%Do While NOT(rsData.EOF)%> <%rsData.MoveNext%> <%Loop%>
Product Name Price Quantity Total
<%=rsData("Title")%> US <%=FormatCurrency(rsData("Price"),2)%> <%=Request.Form("qty_" & rsData("ID"))%> US <%=FormatCurrency(Request.Form("qty_" & rsData("ID"))*rsData("Price"),2)%> <%subtotal=subtotal+Request.Form("qty_" & rsData("ID"))*rsData("Price")%>
Sub-Total: US <%=FormatCurrency(subtotal,2)%>
Sales Tax: <%if Request.Form("state")="NC" Then salestax=subtotal*.06 else salestax=0%> US <%=FormatCurrency(salestax,2)%>
Shipping: <%if Request.Form("country")="US" OR Request.Form("country")="USA" Then shipping=$15 else shipping=10%> US <%=FormatCurrency(shipping,2)%>
Grand Total: <%if Request.Form("state")="NC" Then salestax=subtotal*.06 else salestax=0%> US <%=FormatCurrency(subtotal+salestax+shipping,2)%>

Method of Payment

[__] Payment Enclosed
[__] American Express
[__] Visa
[__] MasterCard

Card Number:
Expiration Date:
Name On Card:
Signature:

Please return this form to:

The Merrifield Consulting Group, Inc.
101 Black Oak Pl.
Chapel Hill, NC 27514
Phone: (919) 933-7474
Fax: (919) 933-7454
E-Mail: karen@merrifield.com

<% rsData.Close Set rsData=Nothing DatabaseDisconnect %>