Bugs on Contact Form

ndundupan
Offline
Last seen: 2 years 7 months ago
Fri, 01/09/2015 - 20:01
#1
Bugs on Contact Form

Hello, after trying to send email i with contact form i found new problem that name on subject not showing on the mail. After look at the code, i found something wrong there.

Its the html code

Submit

and its the php code

$firstname = $_POST["firstname"];
$lastname = $_POST["lastname"];
$email = $_POST["email"];
$message = $_POST["message"];
$name = $firstname . $lastname;

no firstname and lastname on the html contact form. maybe you can update your source at themeforest about this bugs.

cindy
cindy's picture
Offline
Last seen: 2 days 13 hours ago
Mon, 01/12/2015 - 09:59

Hi,
Replace

<input type="text" id="name" name="name" placeholder="Your name*" class="name md-input-text">

with

<input type="text" id="name" name="firstname" placeholder="Your name*" class="name md-input-text">

Did you fix like that?

ndundupan
Offline
Last seen: 2 years 7 months ago
Mon, 01/12/2015 - 10:07

I've fiix that with change the variable :)

Log in or register to post comments