how to call a PHP function from a form button

前端 未结 3 488
别那么骄傲
别那么骄傲 2021-01-24 13:29

I have a form in my index.html that looks like this:

. . . .
<
3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-24 13:43

    you can also make your action like this:

    
    

    and in your send.php you can do this:

    if(isset($_GET['postData'])){
       postData();
    }
    

提交回复
热议问题