dropdown box displays empty rule
| From: | fkeessen at planet dot nl | Date: | Sat, 14 Aug 2004 14:23:25 +0000 |
| Subject: | dropdown box displays empty rule | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-193796@lists.php.net to get a copy of this message | ||
Dear all,
Can you have a look at the following problem;
If the value $selected is filled with a value it must be matched against $rowu->naamreis. If
it's matching then it must be the SELECTED value in the drop down box..
The problem is that it displays now a blank rule..
while($rowu=mysql_fetch_object($result1)){
echo "<option value=\"$rowu->naamreis\">";
if ($selected==$rowu->naamreis)
echo "<option selected value=\"";
echo "$rowu->naamreis</option>\"\n";
Someone can help?
Frank