i was trying to keep the input in html form field after submission occur. so, i’ve used like
<input type="text" name="myField" value="<?php echo isset($_POST['myField']) ? $_POST['myField'] : 'column_name' ?>" />
its working nicely if input type is text. its not working with <textarea> & <select>.
For textarea:
For select:
If you have are using jQuery, I prefer to populate the select using javascript: