Advertisement
cooper549

process.asp

Mar 21st, 2013
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ASP 7.99 KB | None | 0 0
  1. <%
  2. if strAction = "process" then
  3.  
  4.         sONEpostof              = RemoveHTML(KillChars(Trim(Replace(Request.form("postof"), "'", "''"))))
  5.         sONEtitle               = RemoveHTML(KillChars(Trim(Replace(Request.form("title"), "'", "''"))))
  6.         sONEforename            = RemoveHTML(KillChars(Trim(Replace(Request.form("forename"), "'", "''"))))
  7.         sONEsurname             = RemoveHTML(KillChars(Trim(Replace(Request.form("surname"), "'", "''"))))
  8.         sONEpreviousname        = RemoveHTML(KillChars(Trim(Replace(Request.form("previousname"), "'", "''"))))
  9.         sONEaddress             = RemoveHTML(KillChars(Trim(Replace(Request.form("address"), "'", "''"))))
  10.         sONEtown                = RemoveHTML(KillChars(Trim(Replace(Request.form("town"), "'", "''"))))
  11.         sONEcounty              = RemoveHTML(KillChars(Trim(Replace(Request.form("county"), "'", "''"))))
  12.         sONEpostcode            = RemoveHTML(KillChars(Trim(Replace(Request.form("postcode"), "'", "''"))))
  13.         sONEhome                = RemoveHTML(KillChars(Trim(Replace(Request.form("home"), "'", "''"))))
  14.         sONEmobile              = RemoveHTML(KillChars(Trim(Replace(Request.form("mobile"), "'", "''"))))
  15.         sONEwork                = RemoveHTML(KillChars(Trim(Replace(Request.form("work"), "'", "''"))))
  16.         sONEtelpreferred        = RemoveHTML(KillChars(Trim(Replace(Request.form("telpreferred"), "'", "''"))))
  17.         sONEworkcontact         = RemoveHTML(KillChars(Trim(Replace(Request.form("workcontact"), "'", "''"))))
  18.         sONEemail               = RemoveHTML(KillChars(Trim(Replace(Request.form("email"), "'", "''"))))
  19.         sONEpassword            = RemoveHTML(KillChars(Trim(Replace(Request.form("password"), "'", "''"))))
  20.         sONEnatno               = RemoveHTML(KillChars(Trim(Replace(Request.form("mobile"), "'", "''"))))
  21.  
  22.         sONEqts                 = RemoveHTML(KillChars(Trim(Replace(Request.form("qts"), "'", "''"))))
  23.         sONEqtsaward            = RemoveHTML(KillChars(Trim(Replace(Request.form("qtsaward"), "'", "''"))))
  24.         sONEqtsno               = RemoveHTML(KillChars(Trim(Replace(Request.form("qtsno"), "'", "''"))))
  25.         sONEdfecomplete         = RemoveHTML(KillChars(Trim(Replace(Request.form("dfecomplete"), "'", "''"))))
  26.         sONEdfedate             = RemoveHTML(KillChars(Trim(Replace(Request.form("dfedate"), "'", "''"))))
  27.         sONEgtcref              = RemoveHTML(KillChars(Trim(Replace(Request.form("gtcref"), "'", "''"))))
  28.         sONEgtcreg              = RemoveHTML(KillChars(Trim(Replace(Request.form("gtcreg"), "'", "''"))))
  29.         sONEgtccontick          = RemoveHTML(KillChars(Trim(Replace(Request.form("gtccontick"), "'", "''"))))
  30.         sONEgtccondition        = RemoveHTML(KillChars(Trim(Replace(Request.form("gtccondition"), "'", "''"))))
  31.  
  32.         sONEpresentpost         = RemoveHTML(KillChars(Trim(Replace(Request.form("presentpost"), "'", "''"))))
  33.         sONEappointed           = RemoveHTML(KillChars(Trim(Replace(Request.form("appointed"), "'", "''"))))
  34.         sONEschoolname          = RemoveHTML(KillChars(Trim(Replace(Request.form("schoolname"), "'", "''"))))
  35.         sONEschooltype          = RemoveHTML(KillChars(Trim(Replace(Request.form("schooltype"), "'", "''"))))
  36.         sONEschooladdress       = RemoveHTML(KillChars(Trim(Replace(Request.form("schooladdress"), "'", "''"))))
  37.         sONEschooltown          = RemoveHTML(KillChars(Trim(Replace(Request.form("schooltown"), "'", "''"))))
  38.         sONEschoolcounty        = RemoveHTML(KillChars(Trim(Replace(Request.form("schoolcounty"), "'", "''"))))
  39.         sONEschoolpostcode      = RemoveHTML(KillChars(Trim(Replace(Request.form("schoolpostcode"), "'", "''"))))
  40.         sONEschoolgender        = RemoveHTML(KillChars(Trim(Replace(Request.form("schoolgender"), "'", "''"))))
  41.         sONEschoolroll          = RemoveHTML(KillChars(Trim(Replace(Request.form("schoolroll"), "'", "''"))))
  42.         sONEschoolage           = RemoveHTML(KillChars(Trim(Replace(Request.form("schoolage"), "'", "''"))))
  43.  
  44.         sONEpoints              = RemoveHTML(KillChars(Trim(Replace(Request.form("points"), "'", "''"))))
  45.         sONEsalarybasic         = RemoveHTML(KillChars(Trim(Replace(Request.form("salarybasic"), "'", "''"))))
  46.         sONEsalaryplus          = RemoveHTML(KillChars(Trim(Replace(Request.form("salaryplus"), "'", "''"))))
  47.         sONEcsaemploy           = RemoveHTML(KillChars(Trim(Replace(Request.form("csaemploy"), "'", "''"))))
  48.         sONEotheraddress        = RemoveHTML(KillChars(Trim(Replace(Request.form("otheraddress"), "'", "''"))))
  49.         sONEothertown           = RemoveHTML(KillChars(Trim(Replace(Request.form("othertown"), "'", "''"))))
  50.         sONEothercounty         = RemoveHTML(KillChars(Trim(Replace(Request.form("othercounty"), "'", "''"))))
  51.         sONEotherpostcode       = RemoveHTML(KillChars(Trim(Replace(Request.form("otherpostcode"), "'", "''"))))
  52.         sONEothertel            = RemoveHTML(KillChars(Trim(Replace(Request.form("othertel"), "'", "''"))))
  53.        
  54.         appsDate                = year(now) & "-" & month(now) & "-" & day(now)
  55.  
  56.     SQLch = "SELECT UsersRef FROM teachapp WHERE UsersRef = '" & UsersRef & "'"
  57.     Set RSch = Conn.execute(SQLch)
  58.  
  59.     if RSch.EOF then
  60.  
  61.         SQLa = "INSERT into teachapp (appsDate, UsersRef, sONEpostof, sONEtitle, sONEforename, sONEsurname, sONEpreviousname, sONEaddress, sONEtown, sONEcounty, sONEpostcode, sONEhome, sONEmobile, sONEwork, sONEtelpreferred, sONEworkcontact, sONEemail, sONEpassword, sONEnatno, sONEqts, sONEqtsaward, sONEqtsno, sONEdfecomplete, sONEdfedate, sONEgtcref, sONEgtcreg, sONEgtccontick, sONEgtccondition, sONEpresentpost, sONEappointed, sONEschoolname, sONEschooltype, sONEschooladdress, sONEschooltown, sONEschoolcounty, sONEschoolpostcode, sONEpoints, sONEschoolgender, sONEschoolroll, sONEschoolage, sONEsalarybasic, sONEsalaryplus, sONEcsaemploy, sONEotheraddress, sONEothertown, sONEothercounty, sONEotherpostcode, sONEothertel) VALUES ('"&appsDate&"','"&UsersRef&"','"& sONEpostof &"','"&sONEtitle&"','"&sONEforename&"','"&sONEsurname&"','"&sONEpreviousname&"','"&sONEaddress&"','"&sONEtown&"','"&sONEcounty&"','"&sONEpostcode&"','"&sONEhome&"','"&sONEmobile&"' ,'"&sONEwork&"','"&sONEtelpreferred&"','"&sONEworkcontact&"','"&sONEemail&"','"&sONEpassword&"','"&sONEnatno&"','"&sONEqts&"','"&sONEqtsaward&"','"&sONEqtsno&"','"&sONEdfecomplete&"','"&sONEdfedate&"','"&sONEgtcref&"','"&sONEgtcreg&"' ,'"&sONEgtccontick&"','"&sONEgtccondition&"','"&sONEpresentpost&"','"&sONEappointed&"','"&sONEschoolname&"','"&sONEschooltype&"','"&sONEschooladdress&"','"&sONEschooltown&"','"&sONEschoolcounty&"','"&sONEschoolpostcode&"','"&sONEschoolgender&"','"&sONEschoolage&"','"&sONEschoolroll&"','"&sONEpoints&"','"&sONEsalarybasic&"','"&sONEsalaryplus&"','"& sONEcsaemploy &"','"& sONEotheraddress &"','"& sONEothertown &"','"& sONEothercounty &"','"& sONEotherpostcode &"','"& sONEothertel &"');"
  62.         Conn.execute (SQLa)
  63.    
  64.     else
  65.  
  66.         SQLu = "update teachapp set appsDate='"&appsDate&"',UsersRef='"&UsersRef&"',sONEpostof='"&sONEpostof&"',sONEtitle='"&sONEtitle&"',sONEforename='"&sONEforename&"',sONEsurname='"&sONEsurname&"',sONEpreviousname='"&sONEpreviousname&"',sONEaddress='"&sONEaddress&"',sONEtown='"&sONEtown&"',sONEcounty='"&sONEcounty&"',sONEpostcode='"&sONEpostcode&"',sONEhome='"&sONEhome&"',sONEmobile='"&sONEmobile&"',sONEwork='"&sONEwork&"',sONEtelpreferred='"&sONEtelpreferred&"',sONEworkcontact='"&sONEworkcontact&"',sONEemail='"&sONEemail&"',sONEpassword='"&sONEpassword&"',sONEqts='"&sONEqts&"',sONEqtsaward='"&sONEqtsaward&"',sONEqtsno='"&sONEqtsno&"',sONEdfecomplete='"&sONEdfecomplete&"',sONEdfedate='"&sONEdfedate&"',sONEgtcref='"&sONEgtcref&"',sONEgtcreg='"&sONEgtcreg&"',sONEgtccontick='"&sONEgtccontick&"',sONEgtccondition='"&sONEgtccondition&"',sONEpresentpost='"&sONEpresentpost&"',sONEappointed='"&sONEappointed&"',sONEschoolname='"&sONEschoolname&"',sONEschooltype='"&sONEschooltype&"',sONEschooladdress='"&sONEschooladdress&"',sONEschooltown='"&sONEschooltown&"',sONEschoolcounty='"&sONEschoolcounty&"',sONEschoolpostcode='"&sONEschoolpostcode&"',sONEschoolgender='"&sONEschoolgender&"',sONEschoolroll='"&sONEschoolroll&"',sONEschoolage='"&sONEschoolage&"',sONEpoints='"&sONEpoints&"',sONEsalarybasic='"&sONEsalarybasic&"',sONEsalaryplus='"&sONEsalaryplus&"',sONEcsaemploy='"&sONEcsaemploy&"',sONEotheraddress='"&sONEotheraddress&"',sONEothertown='"&sONEothertown&"',sONEothercounty='"&sONEothercounty&"',sONEotherpostcode='"&sONEotherpostcode&"',sONEothertel='"&sONEothertel&"'"
  67.         Conn.execute (SQLu)
  68.  
  69.     end if
  70.  
  71. %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement