HTML Select from database
<?php
require_once('../../../../wp-load.php');
if (isset($_POST['catid']))
$catID = $_POST['catid'];
else
$catID = 0;
$args = array(
'show_option_all' => '',
'show_option_none' => '',
'option_none_value' => '-1',
'orderby' => 'term',
'order' => 'ASC',
'show_count' => 0,
'hide_empty' => false,
'child_of' => $catID,
'exclude' => '',
'echo' => 1,
'selected' => $_POST['subcatid'],
'hierarchical' => 0,
'name' => 'city',
'id' => 'city',
'class' => 'search-select',
'depth' => 0,
'tab_index' => 0,
'taxonomy' => 'property-city',
'hide_if_empty' => false,
'value_field' => 'term_id',
);
wp_dropdown_categories( $args );
?>