在if里面如何获取不到get传过来的o_id,="$o_id有误吗?求大神

WBOY
Release: 2016-06-13 12:19:58
Original
866 people have browsed it

在if里面怎么获取不到get传过来的o_id,=".$o_id有误吗?求大神

------解决思路----------------------
你在 if 里处理的是表单提交
而 o_id 是通过点击链接传递的
根本就是两回事!
------解决思路----------------------

?o_id=">
------解决思路----------------------
表单提交时用POST,你用$_GET当然获取不到。

">
 内加一句
">

然后获取那个地方改为:
$o_id = $_REQUEST['o_id'];
------解决思路----------------------
取值他们说了,你的语句还是要多注意下安全性:
$o_id = (int)$_REQUEST['o_id'];
"oid='{$oid}'"
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!