Discussion Locked

Keeping Data From Form Field after submit

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am using Frontpage and I have created a form that allows you to select different departments from a check box. Upon clicking that form is submitted and a drop down box is then populated with the information from that department. Once you make a choice from that field that form is submitted as well. The problem comes in that I would like to be able to have to forms save the selections that you choose. Does anyone know how to do this. The page in question is http://www.greenehazel.com/claims.asp if you would like to look at the HTML.

1 reply

by Member 30634329

To do this, use the Request object to get the value of the checkbox and alter display accordingly. To do this, you are going to need to have different name= and id= attributes for your INPUT elements. I've also found that the value attribute of a checkbox is always passed, regardless of whether it is checked, so I remove the value. The Request object gets passed "on" if the box is checked. You may have to alter the rest of your ASP code accordingly. Here's an example:

")
else
Response.Write(">")
end if
%>
Commercial Lines?

This discussion is closed to new replies.