send $_POST data via anchor tag

后端 未结 4 1368
夕颜
夕颜 2021-01-07 16:00

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:21

    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?

提交回复
热议问题