开发者

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/ ) 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜