使用HTML获取表格内容 [英] Get Table Contents using HTML

查看:112
本文介绍了使用HTML获取表格内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 <表> 
< tr>

< td> ID< / td>
< td> NAME< / td>
< td> MARKS< / td>
< td>年级< / td>
< td>< a href =AddRecord.jsp>更新记录< / a> < / TD>

< / tr>
< / Table>

当我点击更新超链接按钮时,如何获取表格内容以进行修改?或者如何将这些内容作为参数发送到页面AddRecord.asp。

解决方案

如果您尝试提交这对我来说听起来像是你需要使用传统的< form> 并使更新记录成为提交类型按钮。您将不得不阅读使用数据库和JSP来处理更新请求。

我建议你首先阅读提交表格: http://www.w3schools.com/tags/att_form_action.asp


<Table>
<tr>

<td>ID</td>
<td>NAME</td>
<td>MARKS</td>
<td>Grade</td>
<td><a href="AddRecord.jsp" >Update Record</a> </td>

</tr>
</Table>

How can I get table contents for modification, when I press Update hyperlink button? or how can I send these contents as a parameter to the page "AddRecord.asp".

解决方案

If you are trying to submit a new row to a data table it sounds to me like you just need to use a traditional <form> and make the "Update Record" a submit type button. You are going to have to read up on using databases and JSP to process your update requests.

I suggest you start by reading on submitting forms at: http://www.w3schools.com/tags/att_form_action.asp

这篇关于使用HTML获取表格内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆