-6

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?

4

2 回答 2

1

您可以通过超链接、表单提交、在 URL 栏中手动输入以及许多其他方法来完成此操作。使用超链接:

<a href="www.example.com?id=1">ID1</a>
于 2014-12-07T16:55:46.980 回答
0

我不太确定您在问什么,但是如果您希望将 id 变量添加到 URL,则需要在重定向时将其添加到 URL

前任。从链接

<a href="127.0.0.1/mysite/index.php?userid=1">Link</a>

于 2014-12-07T17:01:57.467 回答