I want something like this:
<a href="http://localhost/index.php?get=abc&post=cde&post=efg">link</a>
GET and 2x POST in hyperlink. How can I do that? Nothing wants to work
I have a GET array in PHP and I want to generate a link which leads to the correct url to give me those GET variables.
You can’t have 2 GET variables with the same name. You can arrange them into an array as follows:
Just for clarification, this is still a GET request, links cannot normally produce a POST request, nor you should try to achieve that not-normally.
EDIT: To answer OP’s calrification.
If you have a
$_GETarray, and you want to generate a link to get you there, you can usehttp_build_query()