hello i have a dropdown which is working of sorts, however instead selecting the empyt selected value 'select an address' it always shows the last entry in the dropdown instead of the empty selected value. i intially had help with code from another source but seem to have lost my way with it. where am i going wrong? many thanks
PS. düzeni hakkında üzgünüm, ama bu kod düğmesine bastıktan sonra dışarı koydu nasıl.
> $address_result = mysql_query("SELECT
> * FROM company_com ORDER BY address1_com ASC"); $dropdown =
> "<select name='address'>"; $dropdown
> .= "<option SELECTED value=\"\">Select
> an Address</option>";
while($row = mysql_fetch_assoc($address_result)) {
$address = $row["address1_com"].$row["address2_com"].$row["address3_com"];
$dropdown .= "<option SELECTED value='".$row['address']."'>$address</option>";
}
$dropdown .= "</select>";