How to put all the cities of Ukraine on the option value="city"
-
There's a code.
<input name="city" type="text" list="city"> <datalist id="city"> <option value="Afghanistan"> <option value="Albania"> <option value="Algeria"> <option value="Andorra"> <option value="Angola"> </datalist>
Is it possible to put all the cities of the Ukrainians in value? How can you do that, how many of them are?
-
<?php $cities = array('сюда список городов');?> <input name="city" type="text" list="city"> <datalist id="city"> <?php foreach($cities as $city){ echo '<option value="'.$city.'">'; } ?> </datalist>