Welcome Guest, Not a member yet? Register   Sign In
form_dropdown: insert blank?
#1

[eluser]ShawnMA[/eluser]
Using the following code:

Code:
<?php  
            $cities_options = array();
            foreach($cities as $city){
            $cities_options[$city->city_id]=$city->city_full;
            }
            echo "<td>" . form_dropdown('cVenueCity', $cities_options, null, 'id="cVenueCity"') . "</td>";
        ?&gt;


Is it possible to add a beginning value such as -- or "Select City" to the drop down?

Thanks.


Messages In This Thread
form_dropdown: insert blank? - by El Forum - 07-13-2011, 01:13 PM
form_dropdown: insert blank? - by El Forum - 07-13-2011, 09:17 PM



Theme © iAndrew 2016 - Forum software by © MyBB