I need to make user pages, but I don’t know how, not to create a separate html file for each user. Many times noticed in the address bar sign "?" (For example: https://ru.stackoverflow.com/ here it is>? <Here it is newreg = 7ef80dea9c5c4a94ba59f3abc21837ac), after observing when it is used, it came to the conclusion that this is what I need, but I still don’t know what it is and how to use it. Tell me, please, what it is and, if not difficult, a link to the site where you can familiarize yourself with its use.

  • one
    You need to learn some programming language and some web framework for it, with "?" it is connected very weakly - andreymal

2 answers 2

You need to create one page that will show the user data on his ID. Aydi will be passed in a string. After the "?" There are GET request parameters where you can get the user id. For example http://test.com/user.php?id=52

To process these parameters, you need server technologies (I chose php), now after receiving the Id you can show the user data like this: "Show me the name of the user with Id = 52", the user data can be stored in the database.

And so, let 's say this, to display the user, you need one page, and the "?" separates the site domain from the GET request parameters.

  • "To handle these parameters, you need server technologies" - you obviously have very outdated or incomplete information. - D-side
  • In any case, HTML is unlikely to make an account page. - Nikita Pavlov

The question mark separates the address from the transmitted data.

https://ru.wikipedia.org/wiki/URL#%D0%A1%D1%82%D1%80%D1%83%D0%BA%D1%82%D1% 83% D1%80% D0%