doutaoer3148 2017-08-12 05:31
浏览 23
已采纳

无法在php中获取密码重置url参数

I have password reset url with parameters(http://localhost/folder1/folder2/inc_resetPassword.php?token=1&tokenid=1) in mail i am unable to get url parameters...

I attempted to use print_r($_GET) but it returns an empty array.

  • 写回答

1条回答 默认 最新

  • doufu2396 2017-08-12 05:39
    关注

    Your print_r($_GET) is not querying / getting anything. You need to specify what $_GET is looking for.

    In your case, your URL has the token and tokenid parameters. So you would need to $_GET['token']; and $_GET['tokenid'];

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?