So I have a select tag that is using a loop in order to populate itself with options from a database. Once an option is selected the page reloads and creates a table based on the city selected, which all works as intended.
<div class="col-sm-2">
        <select name="city" id="city" class="form-control" tabindex="5" placeholder="Select City">
            <option value="" disabled selected>Select City</option>
            <?php
            foreach($cities as $key=>$val)
                echo "<option value={$key}>{$val}</option>";
            ?>
        </select>
    </div>
    <div class="col-sm-2">
        <input type="submit" name="Create City" class="btn btn-primary pull-left" />
    </div>
My question is how would I have the selector display the chosen option after the page is reloaded?
 
    