Showing 1 – 1 of 1 replies
sitekeepers

Thank you for sharp reply! You were […]

sitekeepers PURCHASED
7 years ago
Thank you for sharp reply!
You were right, different mail service works fine.

I have stumbled upon another problem though - I have added another Text Box collecting Contact Number on the index.html form.

I have added these to contact.php

if (isset($_POST["name"]) && isset($_POST["lastname"]) && isset($_POST["email"]) && isset($_POST["phone"]) && isset($_POST["message"])) {

$content = "Name: " . $_POST["name"] . "\r\n";
$content .= "Last Name: " . $_POST["lastname"] . "\r\n";
$content .= "Email: " . $_POST["email"] . "\r\n";
$content .= "Phone: " . $_POST["phone"] . "\r\n";
$content .= "Message: " . "\r\n" . $_POST["message"];

Contact Form is sending the email fine but the value 'Phone' is not picked up - is there any other files that need to be edited?

Thank you in anticipation,
Martin
Double Theme
Double Theme SELLER
7 years ago
You need to edit files:

"assets/js/plugins.min.js"
"assets/js/plugins.js"

Add after this line your phone input:

var message = $('#contact-form [name="message"]').val();

And here:

data: {
name: name,
lastname: lastname,
email: email,
message: message,
...
},