$ _GET和案例。 [英] $_GET and case.
本文介绍了$ _GET和案例。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想让用户直接通过在网址上插入宣布
ID来获取文章
www.mysite.com?AnnID=xxx
其中xxx是宣布的代码。
问题是:
$ _GET [''AnnID'']
如果用户使用小写字母:
< a rel =nofollowhref =http://www.mysite.com?annid=xxxtarget =_ blank> www.mysite.com?annid=xxx
有没有办法获得AnnID,annid,ANNID等等?没有
测试一切?
I want to allow users to get the article directly by inserting the announce
ID on the URL such
www.mysite.com?AnnID=xxx
where xxx is the code of the announce.
The problem is :
$_GET[''AnnID'']
if the user uses lowercase:
www.mysite.com?annid=xxx
It''s there any way to get the AnnID, annid, ANNID, and so on ? without
testing everything ?
推荐答案
_GET ['''AnnID'']
如果用户使用小写字母:
www.mysite.com?annid = xxx
有没有办法获得AnnID,annid,ANNID等等?没有
测试一切吗?
_GET[''AnnID'']
if the user uses lowercase:
www.mysite.com?annid=xxx
It''s there any way to get the AnnID, annid, ANNID, and so on ? without
testing everything ?
它有什么方法可以获得AnnID,annid,ANNID , 等等 ?
没有测试一切?
It''s there any way to get the AnnID, annid, ANNID, and so on ? without testing everything ?
<?php
<?php
annid =' '''; //必须初始化
foreach(
annid = ''''; // MUST initialise
foreach(
这篇关于$ _GET和案例。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文