[Patch] HTML_Form
| From: | Tim Van Wassenhove | Date: | Sat, 15 May 2004 13:26:52 +0000 |
| Subject: | [Patch] HTML_Form | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-29264@lists.php.net to get a copy of this message | ||
Hello,
I was test-driving the HTML_Form package, and i recieved an error when i
called $form->addPassword("password", "desired password");
as described in the documentation.
So i dived into the code and found out that for some addX methods the $default parameter
has to be $default = '' instead.
89c89 < function addPassword($name, $title, $default = '', $size = HTML_FORM_PASSWD_SIZE) --- > function addPassword($name, $title, $default, $size = HTML_FORM_PASSWD_SIZE) 97c97 < function addCheckbox($name, $title, $default = '') --- > function addCheckbox($name, $title, $default) 105c105 < function addTextarea($name, $title, $default = '', --- > function addTextarea($name, $title, $default,
89c89 < function addPassword($name, $title, $default = '', $size = HTML_FORM_PASSWD_SIZE) --- > function addPassword($name, $title, $default, $size = HTML_FORM_PASSWD_SIZE) 97c97 < function addCheckbox($name, $title, $default = '') --- > function addCheckbox($name, $title, $default) 105c105 < function addTextarea($name, $title, $default = '', --- > function addTextarea($name, $title, $default,