<?xml version="1.0"?>
<?xml-stylesheet
href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/search.php">
    <title>PEAR Bug Search Results</title>
    <link>http://pear.php.net/bugs/search.php?cmd=display&amp;package_name%5B0%5D=HTML_QuickForm_altselect&amp;PHPSESSID=6sh8hov6085gl1gd4s43b0k8h0</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/15298" />
      <rdf:li rdf:resource="http://pear.php.net/bug/14014" />

     </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://pear.php.net/gifs/pearsmall.gif">
    <title>PEAR Bugs</title>
    <url>http://pear.php.net/gifs/pearsmall.gif</url>
    <link>http://pear.php.net/bugs</link>
  </image>

    <item rdf:about="http://pear.php.net/bug/15298">
      <title>HTML_QuickForm_altselect: Feature/Change Request 15298 [Verified] All checkbox values become 1 after freeze</title>
      <link>http://pear.php.net/bugs/15298</link>
      <content:encoded><![CDATA[<pre>HTML_QuickForm_altselect Feature/Change Request
Reported by onokazu
2008-12-12T22:37:30+00:00
PHP: 4.4.9 OS: Mac OSX Package Version: 1.1.0

Description:
------------
After submitting a form, values of all the selected checkbox elements 
become 1 when the form is frozen. Maybe related with bug #4564 at http://pear.php.net/bugs/bug.php?id=4564. Can this be fixed in the 
altselect element?






Test script:
---------------
Input:
&lt;input name=&quot;name[]&quot; type=&quot;checkbox&quot; value=&quot;1&quot; id=&quot;qf_934ead&quot; checked=&quot;checked&quot; /&gt;&lt;label for=&quot;qf_934ead&quot;&gt;label1&lt;/label&gt;&lt;br /&gt;
&lt;input name=&quot;name[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; id=&quot;qf_841c61&quot; checked=&quot;checked&quot; /&gt;&lt;label for=&quot;qf_841c61&quot;&gt;label2&lt;/label&gt;&lt;br /&gt;
&lt;input name=&quot;name[]&quot; type=&quot;checkbox&quot; value=&quot;3&quot; id=&quot;qf_3c0a20&quot; checked=&quot;checked&quot;/&gt;&lt;label for=&quot;qf_3c0a20&quot;&gt;label3&lt;/label&gt;

Expected result:
----------------
Frozen:
&lt;tt&gt;[x]&lt;/tt&gt;&lt;input type=&quot;hidden&quot; name=&quot;name[]&quot; value=&quot;1&quot; 
id=&quot;qf_6e4674&quot; /&gt;&lt;label for=&quot;qf_6e4674&quot;&gt;label1&lt;/label&gt;&lt;br /&gt;
&lt;tt&gt;[x]&lt;/tt&gt;&lt;input type=&quot;hidden&quot; name=&quot;name[]&quot; value=&quot;2&quot; 
id=&quot;qf_63f752&quot; /&gt;&lt;label for=&quot;qf_63f752&quot;&gt;label2&lt;/label&gt;
&lt;tt&gt;[x]&lt;/tt&gt;&lt;input type=&quot;hidden&quot; name=&quot;name[]&quot; value=&quot;3&quot; 
id=&quot;qf_63f751&quot; /&gt;&lt;label for=&quot;qf_63f751&quot;&gt;label3&lt;/label&gt;



Actual result:
--------------
Frozen:
&lt;tt&gt;[x]&lt;/tt&gt;&lt;input type=&quot;hidden&quot; name=&quot;name[]&quot; value=&quot;1&quot; 
id=&quot;qf_6e4674&quot; /&gt;&lt;label for=&quot;qf_6e4674&quot;&gt;label1&lt;/label&gt;&lt;br /&gt;
&lt;tt&gt;[x]&lt;/tt&gt;&lt;input type=&quot;hidden&quot; name=&quot;name[]&quot; value=&quot;1&quot; 
id=&quot;qf_63f752&quot; /&gt;&lt;label for=&quot;qf_63f752&quot;&gt;label2&lt;/label&gt;
&lt;tt&gt;[x]&lt;/tt&gt;&lt;input type=&quot;hidden&quot; name=&quot;name[]&quot; value=&quot;1&quot; 
id=&quot;qf_63f751&quot; /&gt;&lt;label for=&quot;qf_63f751&quot;&gt;label3&lt;/label&gt;</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_QuickForm_altselect Feature/Change Request
Reported by onokazu
2008-12-12T22:37:30+00:00
PHP: 4.4.9 OS: Mac OSX Package Version: 1.1.0

Description:
------------
After submitting a form, values of all the selected checkbox elements 
become 1 when the form is frozen. Maybe related with bug #4564 at http://pear.php.net/bugs/bug.php?id=4564. Can this be fixed in the 
altselect element?






Test script:
---------------
Input:
&lt;input name=&quot;name[]&quot; type=&quot;checkbox&quot; value=&quot;1&quot; id=&quot;qf_934ead&quot; checked=&quot;checked&quot; /&gt;&lt;label for=&quot;qf_934ead&quot;&gt;label1&lt;/label&gt;&lt;br /&gt;
&lt;input name=&quot;name[]&quot; type=&quot;checkbox&quot; value=&quot;2&quot; id=&quot;qf_841c61&quot; checked=&quot;checked&quot; /&gt;&lt;label for=&quot;qf_841c61&quot;&gt;label2&lt;/label&gt;&lt;br /&gt;
&lt;input name=&quot;name[]&quot; type=&quot;checkbox&quot; value=&quot;3&quot; id=&quot;qf_3c0a20&quot; checked=&quot;checked&quot;/&gt;&lt;label for=&quot;qf_3c0a20&quot;&gt;label3&lt;/label&gt;

Expected result:
----------------
Frozen:
&lt;tt&gt;[x]&lt;/tt&gt;&lt;input type=&quot;hidden&quot; name=&quot;name[]&quot; value=&quot;1&quot; 
id=&quot;qf_6e4674&quot; /&gt;&lt;label for=&quot;qf_6e4674&quot;&gt;label1&lt;/label&gt;&lt;br /&gt;
&lt;tt&gt;[x]&lt;/tt&gt;&lt;input type=&quot;hidden&quot; name=&quot;name[]&quot; value=&quot;2&quot; 
id=&quot;qf_63f752&quot; /&gt;&lt;label for=&quot;qf_63f752&quot;&gt;label2&lt;/label&gt;
&lt;tt&gt;[x]&lt;/tt&gt;&lt;input type=&quot;hidden&quot; name=&quot;name[]&quot; value=&quot;3&quot; 
id=&quot;qf_63f751&quot; /&gt;&lt;label for=&quot;qf_63f751&quot;&gt;label3&lt;/label&gt;



Actual result:
--------------
Frozen:
&lt;tt&gt;[x]&lt;/tt&gt;&lt;input type=&quot;hidden&quot; name=&quot;name[]&quot; value=&quot;1&quot; 
id=&quot;qf_6e4674&quot; /&gt;&lt;label for=&quot;qf_6e4674&quot;&gt;label1&lt;/label&gt;&lt;br /&gt;
&lt;tt&gt;[x]&lt;/tt&gt;&lt;input type=&quot;hidden&quot; name=&quot;name[]&quot; value=&quot;1&quot; 
id=&quot;qf_63f752&quot; /&gt;&lt;label for=&quot;qf_63f752&quot;&gt;label2&lt;/label&gt;
&lt;tt&gt;[x]&lt;/tt&gt;&lt;input type=&quot;hidden&quot; name=&quot;name[]&quot; value=&quot;1&quot; 
id=&quot;qf_63f751&quot; /&gt;&lt;label for=&quot;qf_63f751&quot;&gt;label3&lt;/label&gt;</pre>]]></description>
      <dc:date>2009-01-17T02:48:46+00:00</dc:date>
      <dc:creator>onokazu &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>HTML_QuickForm_altselect Feature/Change Request</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/14014">
      <title>HTML_QuickForm_altselect: Bug 14014 [Open] Selection Not Remembered on Failed Form Validation</title>
      <link>http://pear.php.net/bugs/14014</link>
      <content:encoded><![CDATA[<pre>HTML_QuickForm_altselect Bug
Reported by light461
2008-05-29T08:00:56+00:00
PHP: Irrelevant OS: Irrelevant Package Version: CVS

Description:
------------
When the form is submitted with the altselect object in it and validation fails on the form for any reason then when the form refreshes the previously selected values in the altselect object are not remembered.

Test script:
---------------
require_once 'HTML/QuickForm.php';
require_once 'HTML/QuickForm/altselect.php';

// Instantiate the HTML_QuickForm object
$form = new HTML_QuickForm('OnlineGiving');
$element =&amp; $form-&gt;addElement('altselect','amount','My gift amount: &lt;em&gt;(U.S. Dollars)&lt;/em&gt;', array('1000' =&gt; '$1000', '500' =&gt; '$500', '250' =&gt; '$250', '100' =&gt; '$100', '50' =&gt; '$50')));
$element-&gt;setIncludeOther(true);
$element-&gt;setSelected('Other Amount');
$form-&gt;addElement('submit', null, 'Review gift and enter payment information...');

// Define filters and validation rules
$form-&gt;registerRule('donation','regex', '/^[\d\-\.\s]+$/');

$form-&gt;addRule('amount', 'Please provide a valid dollar amount.', 'donation');
$form-&gt;addRule('amount', 'Please provide a donation amount.', 'required');

function compare_field($element,$value,$arg) {
	global $form;
	if ($value == $form-&gt;getElementValue($arg)) {
			return true;
	} else {
		return false;
	}
}

// Try to validate a form
if ($form-&gt;validate()) {
  //process data
}else{
   echo &quot;&lt;p&gt;Cras dictum. Maecenas ut turpis. In vitae erat ac orci dignissim eleifend. Nunc quis justo. Sed vel ipsum in purus tincidunt pharetra. Sed pulvinar, felis id consectetuer malesuada, enim nisl mattis elit, a facilisis tortor nibh quis leo. &lt;/p&gt;&quot;;
   $form-&gt;display();
};

Expected result:
----------------
The previously submitted values remembered.

Actual result:
--------------
The altselect object returns to its default settings.</pre>]]></content:encoded>
      <description><![CDATA[<pre>HTML_QuickForm_altselect Bug
Reported by light461
2008-05-29T08:00:56+00:00
PHP: Irrelevant OS: Irrelevant Package Version: CVS

Description:
------------
When the form is submitted with the altselect object in it and validation fails on the form for any reason then when the form refreshes the previously selected values in the altselect object are not remembered.

Test script:
---------------
require_once 'HTML/QuickForm.php';
require_once 'HTML/QuickForm/altselect.php';

// Instantiate the HTML_QuickForm object
$form = new HTML_QuickForm('OnlineGiving');
$element =&amp; $form-&gt;addElement('altselect','amount','My gift amount: &lt;em&gt;(U.S. Dollars)&lt;/em&gt;', array('1000' =&gt; '$1000', '500' =&gt; '$500', '250' =&gt; '$250', '100' =&gt; '$100', '50' =&gt; '$50')));
$element-&gt;setIncludeOther(true);
$element-&gt;setSelected('Other Amount');
$form-&gt;addElement('submit', null, 'Review gift and enter payment information...');

// Define filters and validation rules
$form-&gt;registerRule('donation','regex', '/^[\d\-\.\s]+$/');

$form-&gt;addRule('amount', 'Please provide a valid dollar amount.', 'donation');
$form-&gt;addRule('amount', 'Please provide a donation amount.', 'required');

function compare_field($element,$value,$arg) {
	global $form;
	if ($value == $form-&gt;getElementValue($arg)) {
			return true;
	} else {
		return false;
	}
}

// Try to validate a form
if ($form-&gt;validate()) {
  //process data
}else{
   echo &quot;&lt;p&gt;Cras dictum. Maecenas ut turpis. In vitae erat ac orci dignissim eleifend. Nunc quis justo. Sed vel ipsum in purus tincidunt pharetra. Sed pulvinar, felis id consectetuer malesuada, enim nisl mattis elit, a facilisis tortor nibh quis leo. &lt;/p&gt;&quot;;
   $form-&gt;display();
};

Expected result:
----------------
The previously submitted values remembered.

Actual result:
--------------
The altselect object returns to its default settings.</pre>]]></description>
      <dc:date>2008-11-25T16:21:51+00:00</dc:date>
      <dc:creator>smith_t &amp;#x61;&amp;#116; denison &amp;#x64;&amp;#111;&amp;#x74; edu</dc:creator>
      <dc:subject>HTML_QuickForm_altselect Bug</dc:subject>
    </item>
</rdf:RDF>
