<?php defined( 'ABSPATH' ) or die( 'Direct access is not permitted' );?>
<h1 class="wp-heading-inline">Edit Type of Account</h1>
<p class="note">Note: Please do the activity very carefully in this form, it will update the whole records belonging to selected Type of Account.</p>
<table class="form-table"> 
  <form method='post' action='' name='myform' enctype='multipart/form-data'>
    <input type="hidden" name="action" id="action" value="update_toa">
      <tr class="form-field term-name-wrap">
        <th scope="row"><label for="name">Select Type of Account</label></th>
        <td>
          <select name="type_of_account" id="type_of_account" required>
                <option value="">Select Type of Account</option>
                    <?php foreach($result as $value ) { ?>
                      <option value="<?php echo $value; ?>"><?php echo $value; ?></option>
                    <?php
                    }
                  ?>
           </select>
         </td>
      </tr>
      <tr class="form-field term-name-wrap">
        <th scope="row"><label for="name">Enter Type of Account For Rename</label></th>
        <td>
          <input name="type_of_account_other"  type="text" value="" size="40" placeholder="Please enter other value" required>
         </td>
      </tr>
      <tr>
        <td>&nbsp;</td>
        <td><input type='submit' class='button button-primary' name='but_submit' value='Update'></td>
      </tr>
  </form>
</table> 