in reply to Help w/ reset

Perhaps there is a confusion with the built-in keyword "reset". Try writing it with a different case, like "Reset".

Oh, and a "reset" button won't clear the fields, if they have a default value. Instead, it will set them back to the value the initially were. In the HTML source, you can see that by looking at the "value" attribute.

Replies are listed 'Best First'.
Re: Re: Help w/ reset
by bobasinbob (Initiate) on Jul 30, 2003 at 00:19 UTC
    I think I'm almost on the right track. I added: reset ('Reset', 'a-z'), to the script and initially it will reset. Once I either hit "Encrypt" or "Decrypt" it no longer will reset (or clear) Any ideas?
Re: Re: Help w/ reset
by bobasinbob (Initiate) on Jul 31, 2003 at 11:14 UTC
    I thought I was getting closer but realize I can only reset it once and that's before I hit the "Encrypt" or "Decrypt" button

    Any ideas on why that would be?
      OK, this is leading nowhere. We need to see some code before anybody will be able to get you any further. I do believe some confusion between the built-in reset and the button on the form, and the stickiness of CGI.pm is basically the cause of your problems, but that's as far as my ESP goes.

      Can you put your faulty demo script up some web site, preferably both as a "working" script, and the source? If that's not possible, at least put the source in your scratchpad, between "<code>" and "</code>" tags. You may /msg me when that's happened, or post another reply.

        I posted both the original and my altered code in my scratchpad.

        Thanks for helping out. Sorry if it's a little frustrating. I'm not used to posting in forums such as these.
        I thought I replied to this last night but I guess I didn't, sorry.

        I copied the original code and my code into my scratchpad.