6
6
I have an asp page with a form that collects name, email address, etc. the
form page posts to itself so what I do is check to see if the request method
is POST and if it is I grab the data, do something with it, and display a
message below the form. I want to implement an image verification (captcha)
system. the problem I have is that when you submit the form if the captcha
test fails, all the info you entered into the form is cleared and the user
has to start over. I want the info to stay until the form is successfully
submitted. now, I can set the default value of the text fields to
request.form("fieldname"), but the problem here is that I WANT the info to
be cleared when the form is submitted (users are used to this happening and
if the data stays in the form after a good submission they will be confused)
is there something clever I can do here?
form page posts to itself so what I do is check to see if the request method
is POST and if it is I grab the data, do something with it, and display a
message below the form. I want to implement an image verification (captcha)
system. the problem I have is that when you submit the form if the captcha
test fails, all the info you entered into the form is cleared and the user
has to start over. I want the info to stay until the form is successfully
submitted. now, I can set the default value of the text fields to
request.form("fieldname"), but the problem here is that I WANT the info to
be cleared when the form is submitted (users are used to this happening and
if the data stays in the form after a good submission they will be confused)
is there something clever I can do here?