Here's the code as it stands at the moment. IT says there is something wron on Line 81 - where the <form action="https://www.paypal.com/cgi-bin/webscr" method="post"> line is.
<% @LANGUAGE="VBScript" %>
<% Option Explicit %>
<%
'Declare variables
Dim strSpots
Dim strCost
Dim strTotal
Dim SQL
Dim varPaymentType
strSpots = Request.Form("Tickets")
strCost = Request.Form("Ecost")
varPaymentType = Request.Form("PaymentType")
'Multiply number of tickets by cost per ticket
strTotal = strSpots * strCost
'Open database connection
Call OpenDB()
'Build SQL Statement
SQL = "INSERT INTO Eventreg (EventID, FirstName, LastName, Email, Address1, Address2, City, State, Zip, Phone, ENumber, PaymentType) VALUES ("
SQL = SQL & Request.Form("EventID") & ", '"
SQL = SQL & Request.Form("FirstName") & "', '"
SQL = SQL & Request.Form("LastName") & "', '"
SQL = SQL & Request.Form("Email") & "', '"
SQL = SQL & Request.Form("Street1") & "', '"
SQL = SQL & Request.Form("Street2") & "', '"
SQL = SQL & Request.Form("City") & "', '"
SQL = SQL & Request.Form("State") & "', '"
SQL = SQL & Request.Form("Zip") & "', '"
SQL = SQL & Request.Form("Phone") & "', '"
SQL = SQL & Request.Form("Tickets") & "', '"
SQL = SQL & Request.Form("PaymentType") & "')"
'Execute SQL Statement to enter record into the database
Set RS = dbConn.Execute(SQL)
%>
<html>
<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Event Submit</title>
<link rel="stylesheet" type="text/css" href="main.css">
</head>
<body class="body" link="#FFFFFF" vlink="#FFFFFF" style="color: #FFFFFF" bgcolor="#000080">
<h3>Event Registration Submission</h3>
<p><b>Thank you <%=Request("FirstName") & " " & Request("LastName")%> for
registering for the following event:</b></p>
<p><b><%=Request("EName")%></b></p>
<p><b>The total cost for your tickets is $<%=strTotal%>.</b></p
<%
Select Case (varPaymentType)
Case "Check"
Response.Write"<p>You have chosen to pay by check.</p>"
Case "Cash"
Response.Write"You have chosen to pay by cash. <br>"
Case "PayPal"
Response.Write"You have chosen to pay by credit card. Please click on the link below to pay securely via PayPal."
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<input type="hidden" name="business" value="
[email protected]">
<input type="hidden" name="item_name" value="<%=Request("EName")%>">
<input type="hidden" name="amount" value="<%=strTotal%>">
<p>
<input type="image" src="https://www.paypal.com/en_US/i/btn/x-click-butcc.gif" border="0" name="submit" alt="Make payments with PayPal - it's fast, free and secure!">
</p>
</form>
End Select
%>
<p>If you have any questions, please contact us.</p>
</body>
</html>
<%
'Close and destroy connections
Set RS = Nothing
Call CloseDB()
%>