You will need to use javascript to do that. The "built-in" reset button
merely resets the form values to the initial values, but that wont work for
you, since you set the initial values to whatever the user entered last time
the form loaded.
You'll need to create a function called by the onClick() event to set the
text of all the textboxes to "", set the radio buttons to a default etc
Cheers
Ken
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
From: "Matthew Braden" <[EMAIL PROTECTED]>
Subject: RE: sticky form fields
Thanks for your help Rob, now is there anyway to allow the reset button to
work with this method? Or create another button that resets the fields to
blank?
>>> [EMAIL PROTECTED] 8/30/02 3:40:08 PM >>>
Use
value="<%=request.form("field1")%>
in your form tags.
Rob Swiger
Webmaster
TCRH.org
-----Original Message-----
From: Matthew Braden [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 30, 2002 4:38 PM
To: ActiveServerPages
Subject: sticky form fields
I have a form that enters data into a database. When I click on submit the
data gets pushed to the db but all of the form fields clear. Is there an
easy way to keep the form fields populated?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]