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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to