Re: QuickForm_Controller and Smarty, session error

From: Date: Thu, 24 Jun 2004 17:35:16 +0000
Subject: Re: QuickForm_Controller and Smarty, session error
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13314@lists.php.net to get a copy of this message
This is how I build my radio buttons. I use an external array that has the information of the radios (in $element_data). Then, I just loop through it and place it in a group. $element_data['enabled'] = 'enabled'; $element_data['disabled'] = 'disabled'; $element_data['radio_group']['locked'] = 'locked'; foreach($element_data['radio_group'] as $radio_value) { $radio_button[] = HTML_QuickForm::createElement('radio',null,null,null,$radio_value,null); } return HTML_QuickForm::createElement('group',$radio_button,'status',null,''); Trevan Bertrand Mansion wrote:
Trevan Devaun Richins wrote:
Hello, I have written before about this problem, and now I have an accessible page to allow you to see the error. The error is that on the radio button, there are three settings (enabled, disabled, locked). Say my user has an enabled account, so he should have that checked when the page opens, which happens. But if you reload the very same page (without SHIFT-reload), the value switches. It only happens the first time in the browser session. But if I delete the session cookie, I get the same problem. Also, I have played around and have been able to make the selection disappear, switch, change values in the text boxes, all by making a change, delete the cookie and then reload a few times. The HTML of the page is correct and built write, I have tested that by copying the HTML and building a new page with just that. That page does not create the problem. Any ideas? The page can be accessed at http://students.cs.byu.edu/~tdr32/LDAP_Admin/LDAP_Admin/. Also, the error only occurs so far with Netscape, Mozilla, and FireFox. IE doesn't do it. I am using HTML_QuickForm 3.2.2 and HTML_QuickForm_Controller 1.0.2 and Smarty 2.6.3.
Difficult to guess without the source. How do you add the radio elements to your form ? Bertrand Mansion Mamasam


« previous php.pear.general (#13314) next »