php页面中js判断循环输出的表单值

来源:百度知道 编辑:UC知道 时间:2024/05/30 21:03:00
在php页面中循环输出多条记录,每一条记录是一个表单。js要怎么判断某一个表单中的值是否符合要求。我输出的每一个表单名都是一样的。答案采纳后给分,绝对超值!!!
<?php
$query="select * from finished_info where del_tag=0";
$rst=$aa->excu($query);
while($info1=mysql_fetch_array($rst,MYSQL_ASSOC)){
<form action="" method="post" name="form" onSubmit="javascript:return aa()">
<tr bgcolor="#FFFFFF">
<td height="25" align="center"><?php echo $info1["name"];?></td>
<td height="25" align="center"><input name="finished_num" type="text" size="8" value=""></td><td><input name="cont" type="text" size="20"></td><td width="6%" height="25" align="center"><input type="submit" name="add" value="提交" /

<form action="" method="post" name="form1" onSubmit="javascript:return check()">
<tr bgcolor="#FFFFFF">
<td height="25" align="center">a</td>
<td height="25" align="center"><input name="finished_num" type="text" size="8" value="1"></td><td><input name="cont" type="text" value="a" size="20"></td><td width="6%" height="25" align="center"><input type="submit" name="add" value="提交" /></td>
</tr>
</form>
<form action="" method="post" name="form2" onSubmit="javascript:return check()">
<tr bgcolor="#FFFFFF">
<td height="25" align="ce