send $_POST data via anchor tag

后端 未结 4 432
长发绾君心
长发绾君心 2021-01-07 16:02

is it possible to somehow send $_POST[] data via a tag? because it seems to automaticly execute the $_POST[] once the page l

4条回答
  •  孤城傲影
    2021-01-07 16:17

    You could get hold of the query string from the href attribute of the anchor tag (you would need to parse the href and get hold of the string on the right hand side of the & symbol) and then post it using javascript or jquery (easier to use jquery).

    http://api.jquery.com/jquery.post/

    Would have to ask why you would want/need to do this?

提交回复
热议问题