Well, seems you have some confusing logic here, since you
print out the option before you check if it should be checked.
To top it off, when its accually checked you write out an empty
value, which really doesnt make any sence at all.

A quick rewite would be :

while($rowu=mysql_fetch_object($result1)){
  if ($selected==$rowu->naamreis)
     echo "<option SELECTED value=\"$rowu->naamreis\">" . $rowu->naamreis .
"</option>\n" ;
  else
     echo "<option                     value=\"$rowu->naamreis\">" .
$rowu->naamreis . "</option>\n" ;
}

-- 
Kim Steinhaug
-------------------------------------------------------------------------
There are 10 types of people when it comes to binary numbers:
those who understand them, and those who don't.
-------------------------------------------------------------------------
www.steinhaug.com - www.easywebshop.no - www.easycms.no - www.webkitpro.com
-------------------------------------------------------------------------

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

Reply via email to