| 发表于:2007-09-07 22:59:52 楼主 |
比如表单里有以下内容: <input type= "checkbox " name= "article_id[] " id= "article_id "> <input type= "checkbox " name= "article_id[] " id= "article_id "> <input type= "checkbox " name= "article_id[] " id= "article_id "> 处理页面如何处理它并把它转换成用“,”分割的字符串? 比如php是这样的 $article=$_post[ 'article_id ']; foreach($article as $id){ $str.=$id. ", "; } $str=substr($str,0,-1); $sql= "update .........where id in( ".$str. ") "; ........ |
|
|
|
|