"
Mail.IsHTML = True
strErr = ""
bSuccess = False
On Error Resume Next ' catch errors
Mail.Send ' send message
If Err <> 0 Then ' error occurred
strErr = Err.Description
else
bSuccess = True
End If
End If
%>
<%
If Request.Form("to") <> "" Then
'dump form results into local variables
Dim varName, emailAddress, url, mainCat, websiteDescription, sendNewsletter
varName = Request.Form("name")
emailAddress = Request.Form("emailAddress")
url = Request.Form("url")
mainCat = Request.Form("mainCat")
websiteDescription = Request.Form("websiteDescription")
sendNewsletter = Request.Form("sendNewsletter")
'Response.Write(varName & " ")
'Response.Write(emailAddress & " ")
'Response.Write(url & " ")
'Response.Write(mainCat & " ")
'Response.Write(websiteDescription & " ")
'Response.Write(sendNewsletter & " ")
'remove illegal characters
varName = Replace(varName, "'", "''")
emailAddress = Replace(emailAddress, "'", "''")
url = Replace(url, "'", "''")
websiteDescription = Replace(websiteDescription, "'", "''")
'Insert form results into log file
Set objComm = Server.CreateObject("ADODB.Command")
objComm.ActiveConnection = MM_connFlip_STRING
objComm.CommandText = "INSERT INTO submissions (name, emailAddress, url, mainCat, websiteDescription, sendNewsletter) VALUES ("&"'"&varName&"', '"&emailAddress&"', '"&url&"', '"&mainCat&"', '"&websiteDescription&"', '"&sendNewsletter&"')"
objComm.CommandType = adCmdText
'Response.Write(objComm.CommandText)
'Response.End()
objComm.Execute
Set objComm = Nothing
End If
%>
<%
Dim rsMainCat
Dim rsMainCat_numRows
Set rsMainCat = Server.CreateObject("ADODB.Recordset")
rsMainCat.ActiveConnection = MM_connFlip_STRING
rsMainCat.Source = "SELECT * FROM mainCat"
rsMainCat.CursorType = 0
rsMainCat.CursorLocation = 2
rsMainCat.LockType = 1
rsMainCat.Open()
rsMainCat_numRows = 0
%>
flipopolis « submit your site »
submit
your site
Submit
a Site
If you would like to submit a site to Flipopolis, fill and submit the form below.
Maybe your site is good enough to make it to downtown Flipopolis. All submissions
will receive a prompt response. If you would like your site removed, e-mail
us.
<% If strErr <> "" Then
Response.Write "
We're sorry, an error has occurred: " & strErr & "
"
End If %>
<% If bSuccess Then
Response.Write "
" & Request.Form("name") & ", thank you for your submission.