CRUD table form problems

It's not perfect HTML, but it doesn't have to be, and comes from a JSP.

In any event, it's supposed to have two buttons, an "update" and "delete" 
button.  However, that doesn't seem to work because the two buttons seem 
to overlap.

So, maybe I should have a "delete" link?  How would that work?  Or, is 
there a better way?


thanks,

Thufir










<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; 
charset=UTF-8">
        <title>JSP Page</title>
    </head>

    <body>
        <br>  <br>  <br>

        <table>
 <tr>
  <form accept-charset='UNKNOWN' method='get' action='/
Assignment' enctype='application/x-www-form-urlencoded'>
   <td title='update'>
    <input name='method' type='hidden' 
value='update'>
    <input name='id' type='submit' value='0'>

   </td>
   <td>
    <input name='title' type='text' 
value='#1: Liberty and Tyranny: A Conservative Manifesto'>
   </td>
   <td>
    <input name='link' type='text' 
value='         http://www.amazon.com/Liberty-Tyranny-Conservative-Mark-
Levin/dp/1416562850/ref=pd_zg_rss_ts_b_book_1         '>
   </td>
   <td>
<form accept-charset='UNKNOWN' enctype='application/x-www-form-
urlencoded'><input type='submit' value='delete'></form>

   </td>
  </form>
 </tr>
 <tr>
  <form accept-charset='UNKNOWN' method='get' action='/
Assignment' enctype='application/x-www-form-urlencoded'>
   <td title='update'>
    <input name='method' type='hidden' 
value='update'>
    <input name='id' type='submit' value='1'>
   </td>

   <td>
    <input name='title' type='text' 
value='#2: Act Like a Lady, Think Like a Man: What Men Really Think About 
Love, Relationships, Intimacy, and Commitment'>
   </td>
   <td>
    <input name='link' type='text' 
value='         http://www.amazon.com/Act-Like-Lady-Think-Relationships/
dp/0061728977/ref=pd_zg_rss_ts_b_book_2         '>
   </td>
   <td>
<form accept-charset='UNKNOWN' enctype='application/x-www-form-
urlencoded'><input type='submit' value='delete'></form>
   </td>

  </form>
 </tr>

</table>

        
        
        
        
    </body>
</html>

Received on Wednesday, 25 March 2009 07:04:47 UTC