I have an ASP page that sends an email to someone...someone clicks on the link that sends them to this page...they fill out form but leave out an item...the error trap below brings up a page with a "Back" link...they click "Back" and their data they entered is lost...if they retype and still have an error...then click the "Back" button their data is NOT lost...
If Request.Form("Submit1" = "Process" then
'checking for blanks and invalid entries
If Len(Request.Form("whorespond") = 0 then
Response.Write "Please Enter your name." & "<BR>"
Response.Write"<a href='javascript:history.back()'>Back</a>"
Response.End
end if
What am I doing wrong?? I do not want the user to have to retype data.
Thank you.
If Request.Form("Submit1" = "Process" then
'checking for blanks and invalid entries
If Len(Request.Form("whorespond") = 0 then
Response.Write "Please Enter your name." & "<BR>"
Response.Write"<a href='javascript:history.back()'>Back</a>"
Response.End
end if
What am I doing wrong?? I do not want the user to have to retype data.
Thank you.