Contact form sends mail with empty message field

后端 未结 2 1012
孤独总比滥情好
孤独总比滥情好 2021-01-29 04:54

When i send an email with my contact form the textarea value does not send and the \"message:\" field is always empty in the email.

Declaring the input variables manuall

2条回答
  •  一向
    一向 (楼主)
    2021-01-29 05:48

    Your variable naming is inconsistent.

    In your HTML-form you're using message for the name-attribute. But in you're AJAX-call and in the PHP $_POST-GLOBAL you are looking for a variable called text.

提交回复
热议问题