W3C home > Mailing lists > Public > www-html@w3.org > March 2009

CRUD table form problems

From: Thufir <hawat.thufir@gmail.com>
Date: Tue, 24 Mar 2009 22:31:11 +0000 (UTC)
To: www-html@w3.org
Message-ID: <gqbmve$ghd$1@ger.gmane.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:16:15 GMT