title: How to display php mysql select value in popup
body: <p>i want to pass mysql select value (UID) to css popup.this is my code what I have tried.but it's display empty textbox.this pop up button display when click on delete button.i want to pass relavent user UID to popup.</p>
  
  <pre><code>    &lt;table  class="table table-striped table-bordered responsive"&gt;
                              &lt;thead&gt;
                              &lt;tr&gt;
                                  &lt;th&gt;User ID&lt;/th&gt;
                                  &lt;th&gt;Facebook ID&lt;/th&gt;
                                  &lt;th&gt;Name&lt;/th&gt;
                                  &lt;th&gt;E-mail&lt;/th&gt;
                                  &lt;th&gt;&lt;/th&gt;
  
                              &lt;/tr&gt;
                              &lt;/thead&gt;
                              &lt;tbody&gt;
                                &lt;tr&gt;  
                            &lt;?php
  
                          $query = 'SELECT * FROM Users ';
                          $result = mysql_query($query);
                          while($row = mysql_fetch_assoc($result))
                              {   
  
                              echo '&lt;tr&gt;';
                              echo '&lt;td&gt;'.$row['UID'].'&lt;/td&gt;';
                              echo '&lt;td  class="center"&gt;'.$row['Fuid'].'&lt;/td&gt;';
                  echo '&lt;td class="center"&gt;'.$row['Ffname'].'&lt;/td&gt;';
                  echo '&lt;td  class="center"&gt;'.$row['Femail'].'&lt;/td&gt;';
                  echo '&lt;td&gt;'.'&lt;a href="#" class="btn btn-info btn-setting" &gt;'.'Delete'.'&lt;/a&gt;'.'&lt;/td&gt;';
                  echo '&lt;/tr&gt;';   
                  }                           
                  ?&gt;
                  &lt;/tr&gt;
                   &lt;/tbody&gt;
                    &lt;/table&gt;
  
   &lt;form action="db_sql/db_delete_supplier.php" method="post" name="frm1" id="frm1" &gt;
          &lt;div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"
               aria-hidden="true"&gt;
  
              &lt;div class="modal-dialog"&gt;
                  &lt;div class="modal-content"&gt;
                      &lt;div class="modal-header"&gt;
                          &lt;button type="button" class="close" data-dismiss="modal"&gt;×&lt;/button&gt;
                          &lt;h3&gt;Delete Supplier&lt;/h3&gt;
                      &lt;/div&gt;
                      &lt;div class="modal-body"&gt;
                        &lt;p&gt;Are you sure to delete this supplier from system ...? &lt;/p&gt;
                      &lt;/div&gt;
                      &lt;div class="modal-footer"&gt;
                      &lt;input type="text" name="UID" value="&lt;?php echo $row['UID'];?&gt;" /&gt;
                          &lt;!--&lt;a href="user.php" class="btn btn-default" data-dismiss="modal" name="no"&gt;Close&lt;/a&gt;
                          &lt;a href="db_sql/db_delete_supplier.php" class="btn btn-primary" data-dismiss="modal" name="yes"&gt;Delete&lt;/a&gt;--&gt;
                          &lt;input type="submit" class="btn btn-default" name="no" value="Close" /&gt;
                           &lt;input type="submit" class="btn btn-primary" name="yes"  value="Delete"/&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/form&gt;
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/nHOYm.jpg" alt="Users Table"></p>