Run php function inside jQuery click

后端 未结 9 767
醉酒成梦
醉酒成梦 2020-12-03 12:19

How do i run a PHP function inside jQuery click event. I have the following which is not correct. when the user clicks on a button, i want a new directly created.

         


        
9条回答
  •  一生所求
    2020-12-03 12:42

    JavaScript - Client Side.

    PHP - Server Side.

    You need to issue an AJAX call of some kind in order to communicate with the Server. There's no way for JavaScript to create directories on your Remote Server (this would be a huge security hole otherwise).

提交回复
热议问题