<label><input name="tags[]" value="1" type="checkbox" /> Aggressive</label> <label><input name="tags[]" value="2" type="checkbox" /> Calm</label> <label><input name="tags[]" value="3" type="checkbox" /> Cheerful</label> <label><input name="tags[]" value="4" type="checkbox" /> Confident</label> <label><input name="tags[]" value="5" type="checkbox" /> Dark</label> <label><input name="tags[]" value="6" type="checkbox" /> Dramatic</label> <label><input name="tags[]" value="7" type="checkbox" /> Edgy</label> <label><input name="tags[]" value="8" type="checkbox" /> Energetic</label> <label><input name="tags[]" value="9" type="checkbox" /> Hopeful</label> <label><input name="tags[]" value="10" type="checkbox" /> Laid back</label> <label><input name="tags[]" value="11" type="checkbox" /> Melancholic</label> <label><input name="tags[]" value="12" type="checkbox" /> Neutral</label> <label><input name="tags[]" value="13" type="checkbox" /> Optimistic</label> <label><input name="tags[]" value="14" type="checkbox" /> Playful</label> <label><input name="tags[]" value="15" type="checkbox" /> Positive</label> <label><input name="tags[]" value="16" type="checkbox" /> Quirky</label> <label><input name="tags[]" value="17" type="checkbox" /> Relaxed</label> <label><input name="tags[]" value="18" type="checkbox" /> Sentimental</label> <label><input name="tags[]" value="19" type="checkbox" /> Uplifting</label> <label><input name="tags[]" value="20" type="checkbox" /> Warm</label>
Will Kelly wrote on 02/16/11 9:56 am:Sure, here! http://scrp.at/wm I also submitted a patch to the repo to allow the Form::select method to accept multiple selected options, for completeness this is here. http://scrp.at/wn Btw in the method I'm not sure what lines 22/23 achieve (as $values isn't used again)
<?php $array = array( 'available' => 'Avaialble', 'retired' => 'Retired', ); echo Form::radios('my_status', $_POST, $array); ?>
<?php $array = array( 'available' => 'Avaialble', 'retired' => 'Retired', ); echo Form::radios('my_status', $_POST['my_status'], $array); //$_POST['my_status'] = 'available'; (or 'retired') ?>
It looks like you're new here. If you want to get involved, click one of these buttons!