How to pass id using POST?

Generate links to cards the ads, usually the record id in the database is passed with the GET method. But I have to pass by POST method, that would have been nice URL.
As when generating the page itself to these nine. What is the best way?
March 19th 20 at 08:43
1 answer
March 19th 20 at 08:45
The best way:
GET sita-poka-chto.netu/advert_id/999999999
and to use a framework

the POST method is used when you want to save something on the server or change.
And what you describe is the same GET, only in parameters and the request body is empty.

/advert_id/999999999 you will find in $_SERVER['REQUEST_URI']

As a line break guess?
In the formation of some complex routing rules, you 100% need a regular expression.

Find more questions by tags PHP