title: insert data from html table to database jsp
body: <p>i have a jsp page . i display books from database. in front of all book i have order button. I want to order book . When i order bookcode and  bookname  will add
  to database border table. but i cant get data from html table. How i can get data from html table in jsp file?</p>
  
  <pre><code>    st =conn.prepareStatement("select * from books where  book_name like ?  ");
              st.setString(1, "%"+book+"%");
  
              ResultSet rslt = st.executeQuery(); if(rslt.next()){   %&gt;
  &lt;h3  align="center"&gt;Result Of Your Search  &lt;/h3&gt;
  &lt;table align="center"&gt;
   &lt;thead&gt;
    &lt;tr&gt;
     &lt;td&gt;Book Name&lt;/td&gt;
     &lt;td&gt;Author&lt;/td&gt;
     &lt;td&gt;Title&lt;/td&gt;
     &lt;td&gt;Code&lt;/td&gt;
     &lt;td&gt;Page&lt;/td&gt;
    &lt;/tr&gt;
   &lt;/thead&gt;
   &lt;tbody&gt;
    &lt;% do { 
   %&gt;&lt;tr&gt;
      &lt;td&gt;&lt;%=rslt.getString("book_name")%&gt;&lt;/td&gt;
       &lt;td&gt;&lt;%=rslt.getString("author")%&gt;&lt;/td&gt;
        &lt;td&gt;&lt;%=rslt.getString("title")%&gt;&lt;/td&gt;
         &lt;td&gt;&lt;%=rslt.getString("code")%&gt;&lt;/td&gt;
      &lt;td&gt;&lt;%=rslt.getString("page")%&gt;&lt;/td&gt; 
      &lt;td&gt;&lt;form method="POST" action=book.jsp&gt;
          &lt;input type="submit" value="order" name="order" /&gt;&lt;/form&gt;&lt;/td&gt;
   &lt;% } while (rslt.next()); %&gt;
  
  
   &lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>'</p>
  
  <p>i want when i click to  order button book name and book code will add to order database table</p>