This is my website : http://www.iamshahil.com , I have a contact form in my index page and i want the submitted data from the contact form to be sent to my email. i have a code but that does not work and my submit button is not being able to be clicked.
Here is my form :
<form method="post" action="mail.php">
<table>
<tr>
<td class="feedbacktext">Name</td>
</tr>
<tr>
<td> <input type="text" id="name" placeholder="You"></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr style="margin-top:20px;">
<td class="feedbacktext">Email</td>
</tr>
<tr>
<td><input type="text" id="email" placeholder="you@email.com"></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td class="feedbacktext">Website</td>
</tr>
<tr>
<td><input type="text" id="website" placeholder="http://www.yourwebsite.com"></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td class="feedbacktext">Whats up?</td>
</tr>
<tr>
<td><textarea id="message" placeholder="whats up?" rows="4" cols="30"></textarea></td>
</tr>
<tr>
<td></td>
</tr>
<tr>
<td><input id ="send" class="button" type="button" value="Send" style="float: right;"></td>
</tr>
</form>
</table>
and here is my php code :
<?php
if(isset($_POST['submit']))
$name=$_REQUEST['name'];
$email=$_REQUEST['email'];
$website=$_REQUEST['website'];
$message=$_REQUEST['message'];
if (($name=="")||($email=="")||($message==""))
{
echo "All fields are required, please fill <a href=\"\">the form</a> again.";
}
else{
$from="From: $name<$email>\r\nReturn-path: $email";
$subject="Message sent using your contact form";
mail("me@gmail.com", $subject, $message, $from);
echo "Email sent!";
}
?>