【发布时间】:2009-08-14 20:16:57
【问题描述】:
如何使 if -clause which do this and this if
- PHP 的 URL 中没有变量?
- PHP 的 URL 中没有具有值的变量?
对于 #1 的 if 子句应该为真的 URL 示例:
www.example.com/index.php
example.com/index.php
example.com/index.php?
对于 #2 的 if 子句应该为真的 URL 示例:
example.com/index.php?successful_registration
example.com/index.php?successful_login
以下是我不成功的 if -clause for $1
if (isset($_REQUEST[''])) {
// do this
}
【问题讨论】:
-
感谢您的回答! - Lepidosteus 的评论解决了第一个问题。
标签: php url if-statement