Home > Backend Development > PHP Tutorial > php微信网页下拉列表value值获取问题

php微信网页下拉列表value值获取问题

WBOY
Release: 2016-06-02 11:33:28
Original
978 people have browsed it

php微信

做微信公众号,php网页post提交表单,下面是表单内下拉列表

<code> <td><select name="CateID" id="CateID"><?phpwhile ($row=mysql_fetch_array($query)){?><option value="<?php echo $row['CateID'];?>"><?php echo $row['CateName'];?></option>
<?php }?></select></td>下面是获取的$CateID=$_POST['CateID'];$add = "INSERT INTO tPayments(PaymentTime,CateID,PaymentDetail,PaymentNum,PaymentNo,ModiTime)VALUES('$PaymentTime','$CateID','$PaymentDetail','$PaymentNum','$PaymentNo',now())";mysql_query($add);echo "$CateID";</code>
Copy after login

在微信页面那边输出的是一个“Array”,但是用电脑浏览器的话,输出的就是一个值

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template