Re: HTML_QuickForm | putting 'submit' and 'reset' in a group
| From: | Alexey Borzov | Date: | Tue, 09 Dec 2003 10:32:37 +0000 |
| Subject: | Re: HTML_QuickForm | putting 'submit' and 'reset' in a group | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-9402@lists.php.net to get a copy of this message | ||
Hi!
Jeff MacDonald wrote:
the code "works" ok, but as I said, it appears to be submitting the form instead of letting the browser reset the fields.. so when I click reset, my code does the 'process' phase, which is not what I expect. I am willing to make a mod to trap this, but I am not quite sure how to do so. here is the html that gets generated: -- snip -- <label><br /> <input name="submit" value="submit" type="submit" /> <input name="reset" value="reset" type="reset" /> </label><br /> -- snip -- maybe I should check to see if a field named 'reset' exists and with what value before I process the form?If your browser *really* submits the form after you click on 'reset' control, then file a bug for your browser. This has *nothing* to do with QuickForm. The <label></label> tags *do* look suspicious, BTW.