> The resulting HTML output is this: > > <form method="post" action="http://www.mydomain.com/underwear/undies/ > add"> > <fieldset style="display:none;"> > <input type="hidden" name="_method" value="POST" /> > </fieldset> > <table class="undietypes"> > <tr> > <td> > <input type="hidden" name="data[EdibleUndy] > [underwear_type_id]" id="EdibleUndyUnderwearTypeId_" value="" /> > <input type="radio" name="data[EdibleUndy] > [underwear_type_id]" id="EdibleUndyUnderwearTypeId1" value="1" /> > <h2>Boxers</h2> > <img src="http://www.mydomain.com/edible_underwear/img/ > boxers.gif" alt="" /> > </td> > <td> > <input type="hidden" name="data[EdibleUndy] > [underwear_type_id]" id="EdibleUndyUnderwearTypeId_" value="" /> > <input type="radio" name="data[EdibleUndy] > [underwear_type_id]" id="EdibleUndyUnderwearTypeId2" value="2" /> > <h2>Briefs</h2> > <img src="http://www.mydomain.com/edible_underwear/img/ > briefs.gif" alt="" /> > </td> > <td> > <input type="hidden" name="data[EdibleUndy] > [underwear_type_id]" id="EdibleUndyUnderwearTypeId_" value="" /> > <input type="radio" name="data[EdibleUndy] > [underwear_type_id]" id="EdibleUndyUnderwearTypeId3" value="3" /> > <h2>Panties</h2> > <img src="http://www.mydomain.com/]/edible_underwear/ > img/panties.gif" alt="" /> > </td> > </tr> > <tr> > <td colspan=4> > <div class="submit_container"><input type="submit" > type="submit" value="Wear" /></div> > </td> > </tr> > </table> > </form>
I have just created a list of radio buttons (was a select list in one of my forms) using the form helper echo $form->input('user_id', array('empty'=>'None', 'type'=>'radio')); and it produced this ... <input name="data[Person][user_id]" id="PersonUserId_" value="" type="hidden"> <input name="data[Person][user_id]" id="PersonUserId1" value="1" type="radio"><label for="PersonUserId1">PaulGardner</label> <input name="data[Person][user_id]" id="PersonUserId2" value="2" type="radio"><label for="PersonUserId2">IanForster</label> <input name="data[Person][user_id]" id="PersonUserId3" value="3" type="radio"><label for="PersonUserId3">SteveGinn</label> Your code is adding a hidden field for every radio option whereas mine only has one at the very top. That could be interfering with things, not that I'm sure why it adds a hidden field for every radio button?!? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---