【发布时间】:2015-07-18 19:20:36
【问题描述】:
在我的激活码中显示missing_GET_variables,我似乎找不到丢失的get 变量?在我的激活码中...
if ( isset($_GET['id']) && isset($_GET['u']) && isset($_GET['e']) && isset($_GET['p']) ) {
然后在底部有..
} else {
// Log this issue of missing initial $_GET variables
header("location: message.php?msg=missing_GET_variables");
exit();
}
有人告诉我看我的注册页面,
$message = '<!DOCTYPE html><html><head><meta charset="UTF-8">
<title>yoursite Message</title>
</head><body style="margin:0px; font-family:Tahoma, Geneva, sans-serif;"><div style="padding:10px; background:#333; font-size:24px; color:#CCC;">
<a href="http://www.yoursite.com">
<img src="http://www.yoursite.com/images/logo.png"; width="36" height="30" alt="yoursite logo" style="border:none; float:left;"></a>yoursite Account Activation</div>
<div style="padding:24px; font-size:17px;">Hello '.$u.',<br />
<br />Click the link below to activate your account when ready:<br /><br />
<a href="http://www.yoursite.com/activation.php?id='.$uid.'&u='.$u.'&e='.$e.'&p='.$p_hash.'">Click here to activate your account now</a><br />
<br />Login after successful activation using your:<br />* E-mail Address: <b>'.$e.'</b></div></body></html>';
他只给了我那个线索,但显然我似乎找不到它。我知道人们可能会或可能不会帮助我,这很好。但它值得一试不是吗,至少要问一下。
【问题讨论】:
-
删除
isset包装器并找出答案。 -
您知道您可以通过一次调用
isset():if(isset($_GET['id'], $_GET['u'], $_GET['e'], $_GET['p'])) {来检查所有变量
标签: php forms variables get message