Re: Combo box selected value...
| From: | Chris Knipe | Date: | Thu, 06 Jun 2002 19:03:42 +0000 |
| Subject: | Re: Combo box selected value... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-101001@lists.php.net to get a copy of this message | ||
<select name="'.$nome.'" size="1"');
echo("\n");
while ($cont < $quant) {
echo("\n");
if ($blah == $bleh) {
echo(' <option value="'.mysql_result($resultado,
$cont,$letra).'" selected>'.mysql_result($resultado,
$cont,$letra).'</option>');
} else {
echo(' <option value="'.mysql_result($resultado,
$cont,$letra).'">'.mysql_result($resultado,
$cont,$letra).'</option>');
}
$cont++;
}
echo("\n </selected>");
}
}
+++++++++++++++++++
> But, how can i return the selected item value into a variable $var ???
That's normally how I do it... I'm not to sure on which values you need to
do the comparison... It depends on what data you are returning from mysql I
think....