Re: [SMARTY] html checkboxes mod
| From: | CPT John W. Holmes | Date: | Tue, 20 May 2003 14:15:12 +0000 |
| Subject: | Re: [SMARTY] html checkboxes mod | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-9582@lists.php.net to get a copy of this message | ||
> 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...