Calling a particular PHP function on form submit

后端 未结 6 1270
星月不相逢
星月不相逢 2020-11-28 22:11

I was trying to call a particular php function in submit of a form both the form and php scripts are in same page. My code is below.(it is not working and so I need help)

6条回答
  •  天命终不由人
    2020-11-28 22:35

    PHP is run on a server, Your browser is a client. Once the server sends all the info to the client, nothing can be done on the server until another request is made.

    To make another request without refreshing the page you are going to have to look into ajax. Look into jQuery as it makes ajax requests easy

提交回复
热议问题