I really need someones help with this.
I have done a form and put it into a site temporarily
I have done a .php thing.
All works fine the fields on the form the send button etc etc, I get the e-mail as expected the problem is that although the e-mail turns up and the fields are listed there is nothing to see, just seems empty.
I have looked at it for a while now and don't really understand whats going on. My problem is the client requires forms now (after years of just using mailto: ) but needs to see something in operation and is pressing me. hopefully someone can help point me in the right direction
here is the html code for the actual form
<div class="wrapper">
<div id="main" style="padding:50px 0 0 0;">
<!-- Form -->
<form id="contact-form" action="mail.php" method="POST">
<h3b>Get In Touch</h3b>
<div>
<label>
<span>Name: (required)</span>
<input placeholder="Please enter your name" type="text" tabindex="1" required autofocus>
</label>
</div>
<div>
<label>
<span>Email: (required)</span>
<input placeholder="Please enter your email address" type="email" tabindex="2" required>
</label>
</div>
<div>
<label>
<span>Telephone: </span>
<input placeholder="Please enter your number" type="tel" tabindex="3" >
</label>
</div>
<div><label>
<span> Subject</span>
<div>
<select id="subject2" name="subject2" class="field select medium" tabindex="11">
<option value="Say Hello">Say Hello</option>
<option value="Get Into Gossip">Get Into Gossip</option>
<option value="Advertise">Advertise</option>
</select>
</div>
</label>
</div>
<div>
<label>
<span>Anything Else To Say: </span>
<textarea placeholder="Keep It Fairly Short & Sweet" tabindex="5" ></textarea>
</label>
</div>
<div>
<button name="submit" type="submit" id="contact-submit">Send Email</button>
</div>
</form>
<!-- /Form -->
</div>
</div>
here is the code for the php
<?php
$name = $_POST['name'];
$email = $_POST['email'];
$subject2 = $POST['subject2'];
$message = $_POST['message'];
$formcontent=" From: $name ";
$recipient = "wayanjayainbali@gmail.com";
$subject = "Contact Form";
$mailheader = "From: $email \r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
echo "Thank You! We Will Get Back To You As Soon as Humanly Possible";
?>
Here is an attached image of the email I receive when the form has been submitted
NEW TO "COFFEECUP SITE DESIGNER" FOUNDATION 6 FRAMEWORK?
STUCK ON SOMETHING?
LEARNING & UNDERSTANDING "THE HOW TO"? THE WHY'S & THE WHEREFORE'S?
WITH WAYAN'S STEP BY STEP TUTORIALS
A simple quick way to contact me
https://rsd-tutorialscom.coffeecup.com/index.html