小编log*_*801的帖子

看看PHP中的哪个变量触发了If语句?

$one=$_POST['one'];
$two=$_POST['two'];
$three=$_POST['three'];
$four=$_POST['four'];
$five=$_POST['five'];
$six=$_POST['six'];
$seven=$_POST['seven'];
$eight=$_POST['eight'];
$nine=$_POST['nine'];
$ten=$_POST['ten'];
if ( $one   == "gift" or $two   == "gift" or $three == "gift" or $four  == "gift" or $five  == "gift" or $six   == "gift" or $seven == "gift" or $eight == "gift" or $nine  == "gift" or $ten   == "gift" ) {
 echo "<meta http-equiv='refresh' content='0; url=./gift.php?item=" . ??? . "' />";
}
Run Code Online (Sandbox Code Playgroud)

我怎么把??? 填充触发if语句的变量名称...

php syntax if-statement syntax-error

0
推荐指数
1
解决办法
40
查看次数

标签 统计

if-statement ×1

php ×1

syntax ×1

syntax-error ×1