Execute PHP without leaving page

后端 未结 3 810
难免孤独
难免孤独 2021-01-06 13:34

I have a form - textarea (named su) and submit button.

When the form is submitted, I need to

  1. run a PHP script without refreshing/leaving
3条回答
  •  孤独总比滥情好
    2021-01-06 13:54

    Simple , that is what is called AJAX. The solution is more of Javascript, than PHP.

    Using Jquery, you can do it with a simple function call:

    
    
    
    

    Does the trick.

提交回复
热议问题