Submit form to action php file

后端 未结 3 1186
长情又很酷
长情又很酷 2021-01-15 12:09

I have a form where when the user clicks submit, I need a php file to be ran. below is the form and the php file.

3条回答
  •  滥情空心
    2021-01-15 12:50

    You missed to name the submit button. So no entry in the $_POST/$_REQUEST array is given. Depending on the php settings you might want to use array_key_exists() to check for an index in the array as isset might throws an error.

提交回复
热议问题