Re: Populating menu from database problem

From: Date: Tue, 15 Apr 2003 20:31:27 +0000
Subject: Re: Populating menu from database problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144020@lists.php.net to get a copy of this message
Mike, It looks like a really simple mistake when you are echoing the selected code. See below. You have :
<option selected value=$row[operating_system]>$row[operating_system]</option>
change it to: <option selected value='$row[operating_system]'>$row[operating_system]</option> You just forgot the quote around the value field. A tell tale sign of this is when you get a partial value back and that value was split at the location of a space character. Hope this helped, Jonathan Pitcher

« previous php.general (#144020) next »