Quickform <form> attributes - possible bug
| From: | Mike Carter | Date: | Thu, 19 Jun 2003 14:12:38 +0000 |
| Subject: | Quickform <form> attributes - possible bug | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-6120@lists.php.net to get a copy of this message | ||
Hi,
I'm wanting to add some javascript event code to the <form> tag.
I'm using the following which works, but might not be right(?):-
$form = new HTML_QuickForm('RegisterForm', 'post', 'storeDetails.php',
'',
array('onKeyUp'=>"highlight(event)",
'onClick'=>"highlight(event)"));
The above Quickform code produces duplicate tags in the HTML:-
<form onkeyup="highlight(event)" onclick="highlight(event)"
action="storeDetails.php" method="post" name="RegisterForm"
id="RegisterForm" onsubmit="return validate_RegisterForm();"
onKeyUp="highlight(event)" onClick="highlight(event)">
Notice the onclick and onkeyup duplicate entries, although one set have the
tag in lowercase?
Whats going on? A bug?
Regards
--
Mike Carter [web developer]
tel: 01925 758229 // fax: 01925 758023 // web: www.koa.uk.com
This message is confidential.
Unless you are the named addressee or their delegated representative you may
not use, disclose, or copy the contents of the e-mail. If you are not the
named addressee please notify the sender immediately and delete the material
from your computer. Any views or opinions contained in this e-mail are
solely those of the author unless expressly stated otherwise
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.489 / Virus Database: 288 - Release Date: 6/10/2003
________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________