View Single Post
  #1 (permalink)  
Old August 31st, 2004, 07:18 PM
SoC SoC is offline
Authorized User
 
Join Date: Jul 2004
Posts: 65
Thanks: 0
Thanked 0 Times in 0 Posts
Default Form element "memory" - for checkboxes

Howdy,

New to Vbscript - learning as I go.

I want to be able to give form elements "memory".

I have a form which people fill out and submit via CDOMail. I have simple validation on it, and so I want the form elements to retain the users' selections if they have not filled out the form correctly.

I can get this to work easily with text fields/areas and radio buttons using the following method:

Code:
<input type="radio" name="frequency" value="one"
        <%if frequency="one" then response.write("checked")%>>


This does not seem to work with checkboxes though. Does anyone have any ideas how you can make it work with checkboxes?

thanks

S


Reply With Quote