How to make an url show it? ?id=1

2k views Asked by At

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?

2

There are 2 answers

0
user3815506 On BEST ANSWER

You can do this by hyperlink, form submit, manually typing it into the URL bar and many other methods. Use a hyperlink:

<a href="www.example.com?id=1">ID1</a>
0
Pacifici On

Im not too sure what you are asking, but if you are looking to add an id variable to the URL you need to add it to the URL when you redirect

EX. From link

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