Hello, there.. have a problem with my dropdowm menu... tried to look on past posts but didnt see anythin on it.
Anyways, problem is my "select" dropdown menu doesnt "write" all words in a multi-word entry. Per example, the menu gets dynamically populated from a list of cities-categories, in which some of these names like "Buenos Aires" or "Mar del Plata" are made of several words. So, when I try to insert new item, the menu populates just fine and shows as "Buenos Aires" but when I hit "insert" it only keeps the "Buenos" and disegards the second word... it does this for all multi-word entries...
Here is the "select" menu code:
<SELECT name="city" id="city">
<?php
$query=("select * from item_subcategory order by city_name, city_name desc");
$result=mysql_query($query) or die ("Unable to Make the Query:" . mysql_error() );
while($row=mysql_fetch_array($result)){
if ($row['city_name'] == $item['city']) {
$sel = 'SELECTED ';
}
else {
$sel = '';
}
echo "<OPTION " . $sel . "VALUE=".$row['city_name'].">".$row['city_name']."</OPTION>";
}
?>
</SELECT>
Anyw help much appreciated...
Thanks!