Jump to content

[SOLVED] Combo Box Problem


PC

Recommended Posts

I have the following code for populating a combo box:

 

echo "<td>City Search:</td>";

echo "<td><select Name=A_City>";

    for($i=0;$i<=$nbcities;$i++) {

      echo "<option value=".$cityset[CITY_ID][$i].">".$cityset[CITY_NAME][$i]."</option>\n";

        echo "</select>";

 

Unfortunately the first city is correct but the second and subsequent ones aren't in the list but on the screen to the right and therefore not selectable.

Can anyone advise where I am goig wrong please?

 

Thanks

Paul

 

Link to comment
https://forums.phpfreaks.com/topic/153026-solved-combo-box-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.