Answer the question
In order to leave comments, you need to log in
How to process incoming object in phpmailer?
This is how the form data is sent to phpmailer:
This is if the form is written in pure js
This is how it is sent if it is sent to jquery:
1) phpmailer cannot recognize the lines
$name = $_POST["name"];
$email = $_POST["email"];
$number = $_POST["tel"];
Answer the question
In order to leave comments, you need to log in
This is your string in json format, so if you want to process it using php, convert it to an array or php object.
json_decode()
UPD: most likely everything is fine with you, you just look for some strange fields in $_POST, send selectmaterial, and look for email, etc. In the code, before assigning, do var_dump($_POST), and see what you got.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question