i think that your bug is two inputs with h2 id.
join $event1 and event2 to one array and it should be ok

W dniu 2010-08-09 00:27, Fernando Z. Bob pisze:
Hello 
I have a page that contains two callings to generate radiobuttons.

Like this:
echo $this->Form->input('h2', array('type'=>'radio', 'options'=>$Event1));
echo $this->Form->input('h2', array('type'=>'radio', 'options'=>$Event2));

So, it generates two blocks of code with radiobuttons, but only one choice is available for all options. See the generated HTML (http://pastebin.com/1nKdvMHn).

PROBLEM:
If I check a radio from the second box, I can catch its value in the $this->data correctly in the ['h2'] key.
But, if I check a radio from the first box, my $this->data retrieve an empty value for ['h2'] key.

It means, I can't get value if I check the first box.

Could you help me?

I guess it is something related with
<input type="hidden" name="data[Matricula][h2]" id="MatriculaH2_" value="" />
autogenerated part of code.


Thank you
Fernando.
Vitoria, BRAZIL.

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

--
z poważaniem
Marek Wojciech Urbanowicz

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Reply via email to