Submit form using only PHP? Without JavaScript?

后端 未结 5 1102
故里飘歌
故里飘歌 2021-01-26 10:50

I have a form

5条回答
  •  抹茶落季
    2021-01-26 11:35

    Unfortunately, what you are trying to do is not possible. The best you can do is probably this:

    
        
        
        
    
    

    A submit button is displayed when client side scripting is disabled. When it's enabled, the submit button is immediately hidden and the form is automatically submitted.

    EDIT

    Or you could simply include the PHP file. . You won't have access to the _POST array, but considering, the client hasn't had chance to enter any data, that won't really matter.

提交回复
热议问题