如何在 PHP 参数 URL 中包含井号 (#)?

How to include hashtag (#) in PHP parameter URL?

我正在为登录处理程序发出 PHP 请求,它看起来像这样:https://example.com/test.php?username=test123&password=hiuhsda3#24

但我想将主题标签保留在密码或用户名以及之后的所有内容中。我该怎么做?

我得到的密码结果是 hiuhsda3

在 url 中传递密码绝不是个好主意。 使用 Post 请求