Use Ajax to call PHP function for HTML button Onclick

前端 未结 2 565
温柔的废话
温柔的废话 2020-12-22 05:55

I have a an HTML button where I want the onclick to call a PHP function. I need to use AJAX to do this but I am totally lost. There is more that occurs inside the php functi

2条回答
  •  遥遥无期
    2020-12-22 06:48

    Use any javascript library to make ajax calls to the php script on the server. For example:

    • jquery
    • prototype

    Or if you just want really simple stuff, take a look at the sajax ajax toolkit for php

提交回复
热议问题