How can I retain the values entered into a text field on a form that is submitted incomplete. The code I have below checks for an empty string and if any if the fields are emply, I Redirect back to the .asp?error=yes page. When there, the required filed that had been entered to are now cleared. How can I retain their value so the user does not have to start over again.
<% if Request("error") = "yes" then %>
<p align="center"> <font color="#FF0000" size="4">All fields not completed</font></td>
<% end if %>
If Request.Form("bank") = "" or _
Request.Form("Payee") = "" or _
Request.Form("dateofcheck") = "" or _
Request.Form("amount") = "" or _
Request.Form("checknum") = "" or _
Request.Form("loannum") = "" or _
Request.Form("processedby") = "" then
Response.Redirect "StopPayments.asp?error=yes"
End if
<% if Request("error") = "yes" then %>
<p align="center"> <font color="#FF0000" size="4">All fields not completed</font></td>
<% end if %>
If Request.Form("bank") = "" or _
Request.Form("Payee") = "" or _
Request.Form("dateofcheck") = "" or _
Request.Form("amount") = "" or _
Request.Form("checknum") = "" or _
Request.Form("loannum") = "" or _
Request.Form("processedby") = "" then
Response.Redirect "StopPayments.asp?error=yes"
End if