%@Language = VBScript %> <% Option Explicit %> <% Const CGI_DIR = "." Const SHOW_OPTIONAL_FIELDS = "True" 'Const DESTINATION_EMAIL = "info@sandiegotreecare.com" Const DESTINATION_EMAIL = "clint@sandiegotreecare.com" Const SHOW_ATTACHMENT_FIELD = "True" Const TEMPPATH = "d:/inetpub/sandiegotreecare.com/tmp/" Const SUBJECT = "SDTree Estimate request" StartHTML If (Not Cbool(Request.QueryString("mail"))) Then PrintForm Else Response.Write("I am here") Response.End() Dim UploadRequest Set UploadRequest = CreateObject("Scripting.Dictionary") Dim byteCount byteCount = Request.TotalBytes Dim RequestBin RequestBin = Request.BinaryRead(byteCount) BuildUploadRequest RequestBin If (check_form_data) Then send_mail reply_to_user End If Set UploadRequest = Nothing End If FinishHTML Sub StartHTML %>
|
|
|
|||||||||||||||||
|
|||||||||||||||||||
|
|
| First Name: | " & _ UploadRequest.Item("fname").Item("Value") & _ " |
| Last Name: | " & _ UploadRequest.Item("lname").Item("Value") & _ " |
| Phone: | " & _ UploadRequest.Item("phone").Item("Value") & _ " |
| Email: | " & _ UploadRequest.Item("email").Item("Value") & _ " |
| Address: | " & _ UploadRequest.Item("address").Item("Value") & _ " |
| City: | " & _ UploadRequest.Item("city").Item("Value") & _ " |
| State: | " & _ UploadRequest.Item("state").Item("Value") & _ " |
| Zip: | " & _ UploadRequest.Item("zip").Item("Value") & _ " |
| Service: | " & _ UploadRequest.Item("service1").Item("Value") & _ " |
| Service: | " & _ UploadRequest.Item("service2").Item("Value") & _ " |
| Service: | " & _ UploadRequest.Item("service3").Item("Value") & _ " |
| Service: | " & _ UploadRequest.Item("service4").Item("Value") & _ " |
| Service: | " & _ UploadRequest.Item("service5").Item("Value") & _ " |
| Service: | " & _ UploadRequest.Item("service6").Item("Value") & _ " |
| Service: | " & _ UploadRequest.Item("service7").Item("Value") & _ " |
| Comments: | " & _ UploadRequest.Item("comments").Item("Value") & _ " |
| Attached File: | " & _ filename & " |