sessions questions.

Results 1 to 2 of 2

Thread: sessions questions.

  1. #1
    Join Date
    Dec 1969

    Default sessions questions.

    i have a form1.asp that has a submit button and a reset button. <BR><BR>when user clicks submit it jumps to a totals page. Then when the user clicks back button, it will jump back to form1.asp page and load up the values using sessions. <BR><BR>My question is that my reset button does not clear up the form anymore because the values are loaded up by the session variables. what can i do?

  2. #2
    Join Date
    Dec 1969

    Default Build your own reset code...

    &#060;SCRIPT Language=JavaScript&#062;<BR>function forceReset( frm )<BR>{<BR> for( var i=0; i &#060; frm.elements.length; ++i )<BR> {<BR> var fld = frm.elements[i];<BR> if ( fld.type != &#039;Submit&#039; && fld.type != &#039;Button&#039; )<BR> {<BR> fld.value = "";<BR> }<BR> }<BR>}<BR>&#060;/SCRIPT&#062;<BR><BR>....<BR>&#060;INPUT Type=Button Value="Reset form" onClick="forceReset(this.form);"&#062;<BR><BR>**** ******<BR><BR>If you have &#060;SELECT&#062;s or checkboxes or radio buttons, you have to get a little trickier, but not too much.<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts