蟋蟀
版主
  
村里巡逻队长
UID 67242
精华
0
积分 2034
帖子 1761
金钱 2034 喜悦币
威望 0
人脉 0
阅读权限 100
注册 2005-12-17 来自 福建
状态 离线
|
[推荐阅读] php群
【求助】表单提交的问题(很急)
<form name="form1" action="test2.asp" method="post">
<input name="bianliang1" type="text">
这种的方法很多.
象楼上说的
输入用,或者其他符号分开
a,b,c,b
接受的时候
$a_text=explode(",",$_REQUEST['bianliang1']));
for($i=0;$i<sizeof($a_text);$i++)
{
$sql="insert into `tlb`(`filed`) values('$a_text[$i]');
if(mysql_query($sql))
{
print "$a_text[$i]入库成功<br />";
}
}
还有一些细节的地方也要处理一下.
|  吉林php群
27089230 |
|