php-general | 2001032
Date: 03/30/01
- Next message: David Hynes: "[PHP] No-refresh"
- Previous message: dempsejn <email protected>: "Re: [PHP] compiling PHP4"
- In reply to: Robert Vetter: "Re: [PHP] Better way (if...elseif...else)"
- Next in thread: Grimes, Dean: "RE: [PHP] Better way (if...elseif...else)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
> $p_arr=array("000","050","100");
> $fc_arr=array("high","med","low");
> $ptext_arr("High","Medium","Low");
> for($x=0;$x<count($p_arr);$x++)
> { $pstr.="<option value=\"$p_arr[$x]\" ";
> if($priority==$p_arr[$x])
> {
> $pstr.="selected";
> $fcol=$fc_arr[$x];
> }
> $pstr.=">$ptext_arr[$x]\n";
> }
Even better! This looks like to winning entry for our mini-programming
contest. =)
Sig for a Day
Stephan Ahonen, ICQ 491101
"That's very funny Scotty, now beam down my clothes!"
Come back tomorrow for a different sig!
Backspace a single "s" to reply by email
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: David Hynes: "[PHP] No-refresh"
- Previous message: dempsejn <email protected>: "Re: [PHP] compiling PHP4"
- In reply to: Robert Vetter: "Re: [PHP] Better way (if...elseif...else)"
- Next in thread: Grimes, Dean: "RE: [PHP] Better way (if...elseif...else)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

