Reset Button Problem - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Reset Button Problem

Dazed66Dazed66 Posts: 77Member
I have a CGI program that outputs a bunch of Checkmark boxes from data on a drive. At the bottom of the page I have a reset button. Now if I click on checkmarks at this point then the reset button works and clears the form but if the checkmarks were set to be checked from the CGI program the reset button does not uncheck those. Also if the user wants to save the page IE says that this page may not save correctly and it does not save it right? I ended up makeing a button at the bottom of the page that clears all the checkmarks in the CGI program and reloads the page but I would like for it to work correctly. Does anyone know why it behaves like this? I am using C++ for the CGI exe. Thanks...


  • JonathanJonathan Posts: 2,914Member

    So far as I know, the Reset button actually sets the form as it was when the page was loaded, and doesn't clear it fully. So if you load a page and the textbox has a value "fred" then you change it, then press reset, "fred" will be in the box again. You could make a button with some JavaScript in it that clears all the text boxes though, if that is what you wanna do.

    Hope this sheds some light on things... :)


    Count downloads from your site for free!

Sign In or Register to comment.