Re: Re: Using Flexy::Elements for radio buttons in foreach loops

From: Date: Mon, 25 Oct 2004 15:58:01 +0000
Subject: Re: Re: Using Flexy::Elements for radio buttons in foreach loops
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15094@lists.php.net to get a copy of this message
On 25 Oct 2004, at 01:50, Alan Knowles wrote:
On this template: {foreach:results,key,valueObj} : <ol type="A"> <li><label><input type="radio" value="1" type="radio" value="2" name="frmAnswer[{valueObj.quiz_id}]"
            id="frmAnswer_{valueObj.quiz_id}b"
name="frmAnswer[%s]" flexy:nameuses="valueObj.quiz_id"
Couldnt get this to work, so I wrote a function to generate the radio buttons for me.
should work. - In the end, radio buttons are a royal pain in the ass, and a number of times I've just written a hack {radioButton(valueObj.quiz_id},2):h}
Like you say, radio buttons are a pain! Thanks for your feedback though. Peter

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