Popular
Newest
Updated
Sign in
Create an account
Categories
Admin Templates
204
Multipurpose Templates
164
Landing Pages
157
Portfolios & Resumes
86
Ecommerce
46
Blogs & Magazines
26
Directories & Listings
26
UI Kits & Website Builders
10
Documentation
5
Specialty
106
Topics
General
277
Business & Corporate
122
Design & Creative Services
114
Apps & Software
54
Retail & Shopping
35
Startups & SaaS
27
Marketing & Conversion
21
Restaurants & Cafes
17
Education & Learning
16
Finance & Accounting
16
See all →
Compatible with
Bootstrap
776
Tailwind CSS
46
PHP
42
React
42
Laravel
26
Python
24
Angular
23
Vue.js
22
Django
20
ASP.NET Core
14
See all →
Discussion on
Neomax - Multipurpose Template
Details
Discussion
Back to discussions
Showing 1 – 1 of 1 replies
←
1
→
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
Reply
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,
...
},
Reply
Close
Thank you for sharp reply! You were […]
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
"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,
...
},