title: Add and edit data using dialog modal (php mysql)
body: <p>How can <code>id</code> go to my Modal for edit purposes? I'm using php and have to update data using  dialog modal. How can I achieve this?</p>
  
  <pre><code> &lt;a href="" data-toggle="modal" data-target="#myLargeModal"&gt;   
       &lt;?=$objResult["ID"]; ?&gt;
    &lt;div class="modal fade" id="myLargeModal" tabindex="-1" role="dialog"   
         aria-hidden="true"&gt;         
     &lt;input type="text" class="form-control required" name="ID"  id="ID"  
     minlength="5" required/&gt;
  
      &lt;input type="text" class="form-control required" name="Name"  
      id="Name" required&gt;
    &lt;/div&gt;      
  </code></pre>