Send POST data to PHP without using an HTML form?

前端 未结 7 2033
眼角桃花
眼角桃花 2020-12-08 11:54

Is there anyway to send post data to a php script other than having a form? (Not using GET of course).

I want javascript to reload the page after X seconds and post

7条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-08 12:32

    You can use JQuery to post to a php page: http://api.jquery.com/jQuery.post/

提交回复
热议问题