[PATCH] Make radio buttons 'freezable'

From: Date: Tue, 26 Nov 2002 13:12:01 +0000
Subject: [PATCH] Make radio buttons 'freezable'
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-11106@lists.php.net to get a copy of this message
Hello, this patch fixes a problem in freezing radio buttons. With this patch radio buttons keep there value. regards, Derick -- ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ JDI Media Solutions http://www.jdimedia.nl/ PHP Magazine - PHP Magazine for Professionals http://php-mag.net/ -------------------------------------------------------------------------

Index: QuickForm/radio.php =================================================================== RCS file: /repository/pear/HTML_QuickForm/QuickForm/radio.php,v retrieving revision 1.8 diff -u -r1.8 radio.php --- QuickForm/radio.php 20 Nov 2002 10:25:45 -0000 1.8 +++ QuickForm/radio.php 26 Nov 2002 13:10:25 -0000 @@ -143,6 +143,7 @@ $html = ''; if ($this->getChecked()) { $html .= '<tt>(x)</tt>'; + $html .= "<input name='{$this->_attributes['name']}' value='{$this->_attributes['value']}' type='hidden' />"; } else { $html .= '<tt>( )</tt>'; } @@ -242,4 +243,4 @@ // }}} } //end class HTML_QuickForm_radio -?> \ No newline at end of file +?>
« previous php.pear.dev (#11106) next »