<% dim fName dim fAddress dim fCity dim fState dim fZip dim fEmail dim fPhone dim fHowFound dim fDate dim fPlace dim fDescription dim fRecipient dim fSender dim fTDStyleClass dim strMessage dim viewForm dim strSiteURL dim styleInput dim styleInputCity dim styleTextarea fRecipient = "keith@barnesallen.com" fSender = "keith@barnesallen.com" fTDStyleClass = "formtext" strSiteURL = "http://" & Request.ServerVariables("SERVER_name") styleInput = "width:240px" styleInputCity = "width:155px" styleTextarea = "width:240px;height:100px" strMessage = "" viewForm = "yes" fDisclaimer = "Yes" %> Contact Us | Utah Criminal Defense Lawyer Keith C. Barnes, Attorney at Law
Criminal Defense Lawyer in Cedar City and Southern Utah | Keith C. Barnes, Attorney At Law

<% 'CUT AND PASTE ALL OF THE BELOW INTO THE LAYOUT'S CONTENT AREA FOR THE SITE IN QUESTION %> <% If Len(Request.Form("submit")) > 0 Then viewform = "" fDisclaimer = "" If Len(Request.Form("Name")) > 0 Then fName = Request.Form("Name") Else strMessage = strMessage & "[»] You did not enter your name.
" End If If Len(Request.Form("Address")) > 0 Then fAddress = Request.Form("Address") Else strMessage = strMessage & "[»] You did not enter your street address.
" End If If Len(Request.Form("City")) > 0 Then fCity = Request.Form("City") Else strMessage = strMessage & "[»] You did not enter your city.
" End If If Len(Request.Form("State")) > 0 Then fState = Request.Form("State") Else strMessage = strMessage & "[»] You did not enter your state.
" End If If Len(Request.Form("Zip")) > 0 Then fZip = Request.Form("Zip") Else strMessage = strMessage & "[»] You did not enter your zip code.
" End If If Len(Request.Form("Email")) > 0 Then fEmail = Request.Form("Email") If Instr(fEmail, "@") = 0 Or Instr(fEmail, ".") = 0 Or Instr(fEmail, " ") > 0 Or Len(fEmail) < 7 Then strMessage = strMessage & "[»] Your email address appears to be invalid.
" End If Else strMessage = strMessage & "[»] You did not enter your email address.
" End If If Len(Request.Form("Phone")) > 0 Then fPhone = Request.Form("Phone") Else strMessage = strMessage & "[»] You did not enter your phone number.
" End If If Len(Request.Form("HowFound")) > 0 Then fHowFound = Request.Form("HowFound") Else strMessage = strMessage & "[»] You did not select a way that you found our site.
" End If If Len(Request.Form("Date")) > 0 Then fDate = Request.Form("Date") Else strMessage = strMessage & "[»] You did not enter the date of your incident.
" End If If Len(Request.Form("Place")) > 0 Then fPlace = Request.Form("Place") Else strMessage = strMessage & "[»] You did not enter the place where your incident occured.
" End If If Len(Request.Form("Description")) > 0 Then fDescription = Request.Form("Description") Else strMessage = strMessage & "[»] You did not enter a description of your incident.
" End If If Request.Form("Disclaimer") = "Yes" Then fDisclaimer = Request.Form("Disclaimer") Else strMessage = strMessage & "[»] You did not accept the contact form disclaimer." End If If Len(strMessage) = 0 Then on error resume next Set objCDONTS = Server.CreateObject("CDONTS.NewMail") objCDONTS.From = fSender objCDONTS.To = fRecipient 'objCDONTS.BCC = objCDONTS.Subject = "Contact Form Response From " & strSiteURL strBody = "The following information was submitted:" & vbCrLf strBody = strBody & "-----------------------" & vbCrLf strBody = strBody & "Date: " & FormatDateTime(Date, 1) & vbCrLf strBody = strBody & "-----------------------" & vbCrLf strBody = strBody & "Time: " & FormatDateTime(Now, 3) & vbCrLf strBody = strBody & "-----------------------" & vbCrLf strBody = strBody & "Name: " & fName & vbCrLf & vbCrLf strBody = strBody & "Address: " & vbCrLf & fAddress & vbCrLf & fCity & ", " & fState & " " & fZip & vbCrLf & vbCrLf strBody = strBody & "Email: " & fEmail & vbCrLf & vbCrLf strBody = strBody & "Phone: " & fPhone & vbCrLf & vbCrLf strBody = strBody & "How they found the site: " & fHowFound & vbCrLf & vbCrLf strBody = strBody & "Date Of Incident: " & fDate & vbCrLf & vbCrLf strBody = strBody & "Place Of Occurence: " & fPlace & vbCrLf & vbCrLf strBody = strBody & "Description Of Incident: " & vbCrLf & fDescription & vbCrLf & vbCrLf strBody = strBody & "Disclaimer Accepted: " & fDisclaimer & vbCrLf & vbCrLf strBody = strBody & "-----------------------" & vbCrLf strBody = strBody & "Please contact this person within 2 business days. Thank you!" objCDONTS.Body = strBody objCDONTS.Send Set objCDONTS = Nothing %>

Thank you! Your submission was successful!

You submitted the following information on
<%= FormatDateTime(Date, 1) %> at <%= FormatDateTime(Now, 3) %>:

Name: <%= fName %>

Address:
<%= fAddress %>
<%= fCity %>, <%= fState %> <%= fZip %>

Email: <%= fEmail %>
Phone: <%= fPhone %>
How You Found Us: <%= fHowFound %>

Date Of Incident: <%= fDate %>
Place Of Occurence: <%= fPlace %>
Description Of Incident:
<%= fDescription %>

Someone from our offices will be contacting you shortly.

Please click here to return to our homepage and continue browsing!

<% Else 'UNSUCCESSFUL. PUT THE UNSUCCESSFUL MESSAGE HERE. %>

Your submission was not successful.

The following information was missing:

<%= strMessage %>

<% End If End If %> <% If Len(viewForm) > 0 Then %>
KEITH C. BARNES, Attorney At Law
415 North Main Street, Suite 303
Cedar City, UT 84720

P 435.586.6999
P 435.817.3636
F 435.586.1315

<% End If %> <% If (Len(Request.Form("Submit")) > 0 AND Len(strMessage) > 0) OR Len(viewForm) > 0 Then %>
Name:

Address:

City ST Zip

E-mail address:

Phone:

How did you find us?
Date of Incident:

Place of Occurence:

Tell us what happened:

DISCLAIMER: The materials included in this website are for general informational purposes only and are not legal advice. Information on our website is not intended to create, and receipt of it does not constitute, an attorney-client relationship. No person should act upon this information without seeking advice from professional counsel. Please do not send us confidential information until you speak with one of our lawyers and get authorization to send that information to us.

I have read the disclaimer and understand the terms set forth:
checked<% End If %>> Yes   "Yes" Then %>checked<% End If %>> No

<% End If %>

Contact Us