下面是代码,谁帮忙
<?php
$data=date("Y-m-d h:i:s");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>批量数据录入</title>
<style type="text/css">
<!--
.STYLE1 {font-size: 13px}
.STYLE2 {
font-family: "华文琥珀", "华文隶书", "华文行楷", "楷体_GB2312";
font-size: 24px;
}
-->
</style>
</head>
<body>
<table width="507" height="182" border="1" cellpadding="0" cellspacing="0" background="images/bg.JPG">
<form name="form1" method="post" action="index_ok.php">
<tr>
<td height="100" colspan="6" align="center"> </td>
</tr>
<tr>
<td width="125" height="25" align="center"><span class="STYLE1">商品名称</span></td>
<td width="83" align="center" class="STYLE1">编号</td>
<td width="66" align="center" class="STYLE1">单价</td>
<td width="66" align="center" class="STYLE1">数量</td>
<td colspan="2" align="center"><span class="STYLE1">产地</span>
<input name="data" type="hidden" value="<?php echo $data;?>"> </td>
</tr>
<?php
for(
?>
<tr>
<td height="25" align="center"><input name="sp_name[]" type="text" id="sp_name" size="15"></td>
<td align="center"><input name="sp_number[]" type="text" id="sp_number" size="10"></td>
<td align="center"><input name="price[]" type="text" id="price" size="8"></td>
<td align="center"><input name="counts[]" type="text" id="counts" size="8"></td>
<td width="118" align="center"><input name="address[]" type="text" id="address" size="15"></td>
<td width="35" align="center"><input type="button" value="+" style="height:20px" onclick="addNode();"/></td>
</tr>
<tr>
<td height="30" colspan="3" align="right"><input type="submit" name="Submit" value="提交"> </td>
<td colspan="3"> <input type="reset" name="Submit2" value="重置"></td>
</tr>
</form>
</table>
</body>
</html>
<head>
<title>选择搜索CsrCode.Cn</title>
<script language="javascript" type="text/javascript">
function huihui()
{
var divattr=document.createElement("div");divattr.innerHTML='<tr><td height="25" align="center"><input name="sp_name[]" type="text" id="sp_name" size="15"></td><td align="center"><input name="sp_number[]" type="text" id="sp_number" size="10"></td><td align="center"><input name="price[]" type="text" id="price" size="8"></td><td align="center"><input name="counts[]" type="text" id="counts" size="8"></td><td width="118" align="center"><input name="address[]" type="text" id="address" size="15"></td><td width="35" align="center"><input type="button" value="+" style="height:20px" onclick="addNode();"/></td></tr>'
;
document.body.appendChild(divattr);}function addNode()
{alert("aa");
}</script>
</head>
<body><input value="tijiao" type="button" onclick="javascript:huihui();"/></body>
</html>