HTML PHP Contact Form - Submit Button Not Working? Or PHP Issue?

前端 未结 5 2127
别跟我提以往
别跟我提以往 2020-12-22 06:52

Hope you can help, I am trying to knock up a contact form for my website which is HTML, styled with CSS and the email sent with PHP.

5条回答
  •  一向
    一向 (楼主)
    2020-12-22 07:08

    See updated FIDDLE

    Have you tried changing:

    to:

    Alternatively, you can use:

    As you have it now, input type='button' is not a valid element for form submission. For valid form elements, MDN have a great article- see the sections input and buttons

提交回复
热议问题