[FX.php List] Multiple values as check boxes

Jane Chinn Jane.Chinn at cwu.EDU
Fri Apr 15 15:49:30 MDT 2005


Hi,

Would it be possible to send me the edit.php file that was included in 
the completed tutorial in the FX.php in 8 Hours book as an attachment.  
It has the ability to edit the states as ck boxes but not the ability 
to use multiple states.  Simply replacing the existing code with the 
code below didn't work.  I must be missing something.

Thanks,
Jane

On Apr 11, 2005, at 11:44 AM, Stephen Knight 1-800-353-7950 wrote:

> <? foreach($listsResult['valueLists']['state']as $key=>$value) {
> if(eregi($value,$state)){
> $selected='checked';
> }else{
> $selected='';
> }?>
> <input type="checkbox" name="state[]" value="<?php echo $value; 
> ?>"<?php
> echo $selected; ?>><?php echo $value; ?>
> <? } ?>



More information about the FX.php_List mailing list