Sending form POST request to PHP

前端 未结 2 1400
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-26 16:22

I want to send a couple of form fields as a POST request to my PHP page, but I can\'t get it to work. Here is my code:

PHP login.php



        
2条回答
  •  伪装坚强ぢ
    2021-01-26 16:51

    You haven't included the name attribute in your html input elements. name attribute is used when passing form information to the webserver. id is primarily used for javascript based manipulation.

    Username
    Password
    

提交回复
热议问题