怎么在php服务端判断 两组part,transysno,tranlineid 是否相同 ,如果相同则获取相同count的和------解决方案--------------------提交后 print_r($_post); 就知道该怎么做了------解决方案--------------------客户端html
news.php
if($_post['part'][0]==$_post['part'][1] && $_post['transysno'][0]==$_post['transysno'][1] && $_post['tranlineid'][0]==$_post['tranlineid'][1]){ echo ($_post['count'][0] + $_post['count'][1]);}else{ echo 'part,transysno,tranlineid not match';}
http://www.bkjia.com/phpjc/820405.htmlwww.bkjia.comtruehttp://www.bkjia.com/phpjc/820405.htmltecharticlephp分析post重复值 客户端html formaction=new.phpmethod=post inputname=parttype=text/ inputname=transysnotype=text/ inputname=tranlineidtype=text/ inputname=counttype=text/ i...