RE: [SMARTY] html checkboxes mod
| From: | Andrew S. Nagy | Date: | Tue, 20 May 2003 14:54:01 +0000 |
| Subject: | RE: [SMARTY] html checkboxes mod | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9583@lists.php.net to get a copy of this message | ||
Yeah, I see your point. I put my output mod back to the original way.
But, the Label addition (the original cause for the mod) is still there.
> -----Original Message-----
> From: CPT John W. Holmes [mailto:holmes072000@charter.net]
> Sent: Tuesday, May 20, 2003 10:15 AM
> To: Andrew S. Nagy; smarty-general@lists.php.net
> Subject: Re: [SMARTY] html checkboxes mod
>
>
> > I also modified the options input because if you said:
> > $options = array('Budwiser' => 'Bad', 'Molson' =>
> > 'Good');
> > your would get:
> > <input type="checkbox" value="Budwiser"> Bad
> > <input type="checkbox" value="Molson"> Good
> >
> > Intuitively, I would expect to get the Key as the word and the Value as
> the
> > checkbox value, does this make sense?
>
> I would expect the array key to be the checkbox value and the
> array value to
> be the checkbox label. The label could be a word, sentence, paragraph or
> even image. You want the checkbox value to be a single word, usually, so
> that would fit better in the array key.
>
> But I'm just a troll.. :)
>
> ---John Holmes...
>
>