cvs: pear /HTML_QuickForm/QuickForm radio.php
| From: | Bertrand Mansion | Date: | Tue, 26 Nov 2002 13:30:22 +0000 |
| Subject: | cvs: pear /HTML_QuickForm/QuickForm radio.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-7611@lists.php.net to get a copy of this message | ||
mansion Tue Nov 26 08:30:22 2002 EDT
Modified files:
/pear/HTML_QuickForm/QuickForm radio.php
Log:
Frozen radio buttons now keep their values. Thanks to Derick Rethans for noticing it and
submitting the patch.
Index: pear/HTML_QuickForm/QuickForm/radio.php
diff -u pear/HTML_QuickForm/QuickForm/radio.php:1.8 pear/HTML_QuickForm/QuickForm/radio.php:1.9
--- pear/HTML_QuickForm/QuickForm/radio.php:1.8 Wed Nov 20 05:25:45 2002
+++ pear/HTML_QuickForm/QuickForm/radio.php Tue Nov 26 08:30:22 2002
@@ -17,7 +17,7 @@
// | Bertrand Mansion <bmansion@mamasam.com> |
// +----------------------------------------------------------------------+
//
-// $Id: radio.php,v 1.8 2002/11/20 10:25:45 mansion Exp $
+// $Id: radio.php,v 1.9 2002/11/26 13:30:22 mansion Exp $
require_once('HTML/QuickForm/input.php');
@@ -143,6 +143,7 @@
$html = '';
if ($this->getChecked()) {
$html .= '<tt>(x)</tt>';
+ $html .= '<input type="hidden"
name="'.$this->getName().'"
value="'.htmlspecialchars($this->getValue()).'" />';
} else {
$html .= '<tt>( )</tt>';
}