Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果 url 以某些指定的文本结尾,是否仍然在 php 中显示回显?
例如 ...
如果 url 以 ?login=failed 结尾
php是否可以回显...
echo '登录失败,请重试'; ... 例如?
检查是否$_GET['login']已设置,如果已设置,请检查是否等于'failed':
$_GET['login']
'failed'
if( isset( $_GET['login']) && $_GET['login'] == 'failed') { echo 'Login Failed, please try again'; }