/perserverence/application/index.asp

https://github.com/evizitei/bcfpd_asp · ASP · 123 lines · 104 code · 16 blank · 3 comment · 2 complexity · 95575473dcec805ccb1c2e0f6dca5506 MD5 · raw file

  1. <!--#include virtual="/include/templates/top.asa"-->
  2. <!--#include virtual="/include/menus/perserverence.asa"-->
  3. <!--#include virtual="/include/constants/database.asa"-->
  4. <!--#include virtual="/members_only/include/common_functions.asa"-->
  5. <%
  6. Dim Applicant_ID
  7. Applicant_ID = GetVal("Applicant_ID", "")
  8. ' 2. Create a Recordset Object
  9. Set rsApplicant = Server.CreateObject("ADODB.Recordset")
  10. ' 4. If there is a request to update the new record, update the new record
  11. If Request.Form("Submit") = "Submit" Then
  12. rsApplicant.Open "Application_Perserverence", cnnMain,3,3
  13. rsApplicant.AddNew
  14. For Each Item in Request.Form
  15. if trim(Request.Form(Item)) <> "" and Item <> "Submit" then
  16. rsApplicant(Item) = Request.Form(Item)
  17. end if
  18. Next
  19. rsApplicant.Update
  20. rsApplicant.Close
  21. ' Send e-mail notification to BCFPD
  22. Dim servMess
  23. Dim servBody
  24. servBody = "A Perseverence Donation Request Application has been submitted."
  25. Set servMess = Server.CreateObject("JMail.Message")
  26. servMess.AddRecipient "inquiries@dot-1.com"
  27. servMess.AddRecipient "hq@bcfdmo.com"
  28. servMess.Logging = true
  29. servMess.FromName = Request.Form("Namereq")
  30. servMess.From = Request.Form("Email")
  31. servMess.Subject = "BCFPD Web Site - Perseverance Request Application"
  32. servMess.Body = servBody
  33. servMess.Send("216.251.32.73")
  34. Set servMess = Nothing
  35. End If
  36. %>
  37. <table cellpadding="5" cellspacing="0" border="0" width="98%">
  38. <tr>
  39. <td class="PageTitle">Perseverance Donation Application</td>
  40. </tr>
  41. <tr>
  42. <td><font size="1"><strong>Items in bold are required.</strong></font></td>
  43. </tr>
  44. <tr>
  45. <td>
  46. <form method="post" action="index.asp" id="form1" name="form1" onsubmit="return ValidateApp(document.form1.elements, 'You must enter a ');">
  47. <table border="1" cellpadding="3" cellspacing="0" bordercolor="#f2f2f2">
  48. <tr>
  49. <td class="AppLabel" ><b>Name:</b></td>
  50. <td><input type="text" name="Namereq" size="50" maxlength="100"></td>
  51. </tr>
  52. <tr>
  53. <td class="AppLabel">Title:</td>
  54. <td><input type="text" name="Title" size="50" maxlength="100"></td>
  55. </tr>
  56. <tr>
  57. <td class="AppLabel" ><b>Address 1:</b></td>
  58. <td ><input type="text" name="Address1req" size="50" maxlength="100"></td>
  59. </tr>
  60. <tr>
  61. <td class="AppLabel" >Address 2:</td>
  62. <td ><input type="text" name="Address2" size="50" maxlength="100"></td>
  63. </tr>
  64. <tr>
  65. <td class="AppLabel" ><b>City:</b></td>
  66. <td ><input type="text" name="Cityreq" size="50" maxlength="100"></td>
  67. </tr>
  68. <tr>
  69. <td class="AppLabel" ><b>State:</b></td>
  70. <td ><input type="text" name="Statereq" value="MO" size="2" Maxlength="2"></td>
  71. </tr>
  72. <tr>
  73. <td class="AppLabel" ><b>Zip:</b></td>
  74. <td ><input type="text" name="Zipreq" size="5" maxlength="5"></td>
  75. </tr>
  76. </tr>
  77. <tr>
  78. <td class="AppLabel" ><b>Day Time Phone:</b></td>
  79. <td ><input type="text" name="Day_Time_Phonereq" size="15" maxlength="15"></td>
  80. </tr>
  81. <tr>
  82. <td class="AppLabel" >Night Time Phone:</td>
  83. <td ><input type="text" name="Night_Time_Phone" size="15" maxlength="15"></td>
  84. </tr>
  85. <tr>
  86. <td class="AppLabel" >Fax:</td>
  87. <td ><input type="text" name="Fax" size="15" maxlength="15"></td>
  88. </tr>
  89. <tr>
  90. <td class="AppLabel" >E-mail:</td>
  91. <td ><input type="text" name="Email" size="50" maxlength="100"></td>
  92. </tr>
  93. </table>
  94. </td>
  95. </tr>
  96. <tr>
  97. <td align="center">
  98. <a href="javascript:submitPlus(document.form1, 'Submit');"><img SRC="/images/buttons/Submit.gif" border="0"></a>
  99. <input type="Hidden" name="Submit">
  100. </td>
  101. </tr>
  102. </table>
  103. </form>
  104. <%
  105. set rsApplicant = Nothing
  106. %>
  107. <!--#include virtual="/include/templates/bottom.asa"-->