%
' FP_ASP ASP Automatically generated by a Frontpage Component. Do not Edit.
On Error Resume Next
strErrorUrl = ""
If Request.ServerVariables("REQUEST_METHOD") = "POST" Then
If Request.Form("VTI-GROUP") = "0" Then
Err.Clear
Set fp_conn = Server.CreateObject("ADODB.Connection")
FP_DumpError strErrorUrl, "Cannot create connection"
Set fp_rs = Server.CreateObject("ADODB.Recordset")
FP_DumpError strErrorUrl, "Cannot create record set"
fp_conn.Open Application("Database1_ConnectionString")
FP_DumpError strErrorUrl, "Cannot open database"
fp_rs.Open "application_master", fp_conn, 1, 3, 2 ' adOpenKeySet, adLockOptimistic, adCmdTable
FP_DumpError strErrorUrl, "Cannot open record set"
fp_rs.AddNew
FP_DumpError strErrorUrl, "Cannot add new record set to the database"
Dim arFormFields0(16)
Dim arFormDBFields0(16)
arFormFields0(0) = "type_work"
arFormDBFields0(0) = "type_work"
arFormFields0(1) = "name_place_work"
arFormDBFields0(1) = "name_place_work"
arFormFields0(2) = "health_exams"
arFormDBFields0(2) = "with_health_exams"
arFormFields0(3) = "reason"
arFormDBFields0(3) = "reason"
arFormFields0(4) = "soc_security"
arFormDBFields0(4) = "social_security"
arFormFields0(5) = "all_family"
arFormDBFields0(5) = "all_family"
arFormFields0(6) = "position"
arFormDBFields0(6) = "position"
arFormFields0(7) = "workphone"
arFormDBFields0(7) = "workphone"
arFormFields0(8) = "net"
arFormDBFields0(8) = "net"
arFormFields0(9) = "residence_address"
arFormDBFields0(9) = "address"
arFormFields0(10) = "place_of_birth"
arFormDBFields0(10) = "dob"
arFormFields0(11) = "name"
arFormDBFields0(11) = "fullname"
arFormFields0(12) = "record_place_num"
arFormDBFields0(12) = "place_num_rec"
arFormFields0(13) = "level"
arFormDBFields0(13) = "level"
arFormFields0(14) = "assurance"
arFormDBFields0(14) = "assurance"
arFormFields0(15) = "home_phone"
arFormDBFields0(15) = "homephone"
FP_SaveFormFields fp_rs, arFormFields0, arFormDBFields0
fp_rs.Update
FP_DumpError strErrorUrl, "Cannot update the database"
fp_rs.Close
fp_conn.Close
Response.Redirect "detail_application.asp"
End If
End If
%>
New Page 1