自学编程新人求教
thinkphp吧
全部回复
仅看楼主
level 5

<!DOCTY html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta
http-equiv="
Content-Type"
content="
text/html; charset=utf-8" />
<title>修改留言
</title>
</head>
<body>
<form
id="
form1"
name="
form1"
method="
get"
action="
/First/save">
<input
type="
hidden"
id="
id"
name="
id">
<p> 
</p>
<p> 
</p>
<table
width="
600"
border="
1"
align="
center"
cellpadding="
0"
cel
lsp
acing="
0">
<tr>
<th
width="
124"
scope="
row">姓名
</th>
<td
width="
470">
<input
type="
text"
name="
xm"
id="
xm"
value="
yt"/>
2012年12月17日 03点12分 1
level 5

</tr>
<tr>
<th
scope="
row">年龄:
</th>
<td>
<input
type="
text"
name="
nl"
id="
nl"
value="
0"/>
</td>
</td>
</tr>
<tr>
<th
scope="
row">电话
</th>
<td>
<input
type="
text"
name="
dh"
id="
dh"
value="
0" />
</td>
</tr>
<tr>
<th
scope="
row">邮箱:
</th>
<td>
<input
type="
text"
name="
yj"
id="
yj"
value="
yt"/>
</td>
</tr>
<tr>
<th
scope="
row">地址:
</th>
<td>
<input
type="
text"
name="
dz"
id="
dz"
value="
yt"/>
</td>
2012年12月17日 03点12分 2
level 5

</tr>
<tr>
<th
height="
79"
scope="
row">留言:
</th>
<td>
<textarea
row="
15"
cos="
50"
name="
ly"
id="
ly">yt
</textarea>
</td>
</tr>
<tr>
<td
height="
37"
colspan="
2">
<div
align="
center">
<input
type="
submit"
name="
save"
id="
save"
value="
提交修改" />   
<a
href="
/First/lists">返回留言列表
</a>
</div>
</td>
</tr>
</table>
<input
type="
hidden"
name="
__hash__"
value="
aadf1955159908e7f89c4c2847617086_f429e6d399c1f962d8fb2d2ae0ca2201" />
</form>
</body>
</html>
2012年12月17日 03点12分 3
level 5
修改保存的时候 一直提示 数据错误 不知道错在哪
2012年12月17日 03点12分 4
level 11
你是怎么保存的?用的save()方法吗,如果是的话那需要在表单中加入主键的值
2012年12月18日 04点12分 5
1