Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I'm trying to create a simple site for local test, but I need to show on URL the following:
?id=1
How can I do it?
您可以通过超链接、表单提交、在 URL 栏中手动输入以及许多其他方法来完成此操作。使用超链接:
<a href="www.example.com?id=1">ID1</a>
我不太确定您在问什么,但是如果您希望将 id 变量添加到 URL,则需要在重定向时将其添加到 URL
前任。从链接
<a href="127.0.0.1/mysite/index.php?userid=1">Link</a>