Virginia Military Vehicle Association
Note: Please fill in each field as we would like to know more about our members.We do not share, sell or trade any personal information gathered from this site.
* indicates a required field
| *Name: | |
| *City: | |
| State: | |
| Email: | |
| URL: | |
| Comments: | |
You must enter a name.
You must enter a City.
Don't forget to enter your comments!"
response.write "
") End If Flag = request.form("Flag") %>
|
Here is the information you're submitting. If you would like to make changes, please use the appropriate button below, or use the other button to submit this entry as it is. Name: <%= Name %> City: <%= City %> State: <%= State %> Email: <%= Email %> URL: <%= URL %> Comments: <%= Comments %> |
" response.write "Error Number=" & err.number & "
" response.write "Error Descr.=" & err.description & "
" response.write "Help Context=" & err.helpcontext & "
" response.write "Help Path=" & err.helppath & "
" response.write "Native Error=" & err.nativeerror & "
" response.write "Source=" & err.source & "
" response.write "SQLState=" & err.sqlstate & "
" end if IF conn.errors.count> 0 then response.write "Database Errors Occured" & "
" response.write SQLstmt & "
" for counter= 0 to conn.errors.count response.write "Error #" & conn.errors(counter).number & "
" response.write "Error desc. -> " & conn.errors(counter).description & "
"
next
else
response.write "
"
response.write "Thank you! Your entry has been added.
" response.write "View Guestbook" end if Conn.Close Set conn = nothing ' ***************************************************************** ' The following section of code sends email to the guestbook owner ' when somebody signs the guestbook. If you don't want this feature, ' just remove this block. Please note that this will ONLY work on ' NT SERVER with built-in SMTP!! On other systems, please see ' http://www.attitude.com/users/kathi/asp/tools.html for a list of ' components, including email components ' ****************************************************************** Set Mail = CreateObject("CDONTS.Newmail") ' get the sender's address, and if empty, put your own If request("email")="" then Sender = "president@vamva.org" ' put your email address here Else Sender = request("email") End If Mail.From = Sender Mail.To = "president@vamva.org" ' put YOUR email address here Mail.Subject = "New Guestbook Entry" ' you can change this to whatever you'd like Msg = "Name: " & request("name") & Chr(10) Msg = Msg & "City: " & request("city") & Chr(10) Msg = Msg & "State: " & request("State") & Chr(10) Msg = Msg & "URL: " & URL & Chr(10) Msg = Msg & "Comments:" & Chr(10) Msg = Msg & request("Comments") Mail.Body = Msg Mail.Send Set Mail = Nothing End If %>
