[FX.php List] Check Box Question

Gjermund Gusland Thorsen ggt667 at gmail.com
Sun Sep 24 11:50:20 MDT 2006


Something like this?

if( $r[$currRecId]['fieldname'][0] == $vlValue ) {
	$tmpVLValue[] = '<option value="'.$vlValue.'" selected>'.$vlValue;
} else {
	$tmpVLValue[] = '<option value="'.$vlValue.'">'.$vlValue;
}


On 9/24/06, FHASELTINE at aol.com <FHASELTINE at aol.com> wrote:
> I have a field in my Data Base called 'grant'
>
>  My edit webpage can change data in this field
>
>  When I add things to the field  'grant'
>
>  from  a check box, like the different entries
>  RSDP; WRHR; BIRWCH; NIH;
>
>  It works well.  However, when I go to edit a file there is a glitch.     I
> need to check the check box each time.
>  Say I have RSDP and WRHR already checked off and now I just want to add NIH
> and keep the
>  RSDP or WRHR, can I do it?
>
>  At the moment I have to check the RSDP box and the WRHR box each time I
> edit the page or the selection goes away in the field  'grant'
>  How do I just add to the field without rechecking the boxes?
>
>
>  Florence  Haseltine
>  AIM: Fhaseltine
>  fhaseltine at aol.com
>  240-476-7837
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
>
>


More information about the FX.php_List mailing list