Calling a PHP function from an HTML form in the same file

后端 未结 10 1463
无人共我
无人共我 2020-12-05 05:48

I\'m trying to execute a PHP function in the same page after the user enters a text and presses a submit button.

The first I think of is using forms. When the user s

10条回答
  •  没有蜡笔的小新
    2020-12-05 06:18

    Without reloading, using HTML and PHP only it is not possible, but this can be very similar to what you want, but you have to reload:

    
    
    

提交回复
热议问题