problem with validation link -php
i have this link:
http://localhost/login/activation.php?usermail=xxxxx@gmail.com?usercode=$P$Bs9FpyKdKVFdVXYJ6dZCfcZqzWHLlc/
but this validation return Bad request. Why?
function checkBd() {
if (empty($_GET['usermail']开发者_StackOverflow) || (empty($_GET['usercode']))) {
echo "Bad request<br/>";
return false;
}
thanks
are you missing the & characters? should it not look something like this
http://localhost/login/activation.php?usermail=xxxxx@gmail.com&usercode=$P$Bs9FpyKdKVFdVXYJ6dZCfcZqzWHLlc/
I guess its currently taking everything after ?usermail to be one parameter?
Try this
http://localhost/login/activation.php?usermail=xxxxx@gmail.com&usercode=$P$Bs9FpyKdKVFdVXYJ6dZCfcZqzWHLlc/
I changed the second "?" to "&" instead.
You have got ?
twice in there.Fix it and it should be aright.
Edit:
Right now you GET var looks something like this because of the second ?
in the url.
Array ( [usermail] => xxxxx@gmail.com?usercode=$P$Bs9FpyKdKVFdVXYJ6dZCfcZqzWHLlc/ )
精彩评论