javascriptphphtmlhyperlink

hyperlink <a href> using POST Method instead of GET method


As i know, all hyperlink working as GET method. But I wanna make a hyperlink which should be in POST method instead of GET Method <a href='targetpage'>click</a>

Note: I don't want to submit any form. I SHOULD BE ONLY <a> TAG

So is it possible?

Thanks


Solution

  • The post method can only be used by form data if called by html.

    So the only solution would be to make a form and hide the inputs which you want to post, and submit the post to the url you want to.