<section class="contform">
<h3>FOR ENQUIRIES</h3>
<form action="index.php" method="post" name="Contact" class="contact">
<label class="labelformat">Name :</label>
<input name="Name" type="text" maxlength="50" class="txt" /><br />
<label class="labelformat">E-mail :</label>
<input name="email" type="text" maxlength="100" class="txt" /><br />
<label class="labelformat">Enquiry:</label>
<textarea name="message" class="txt" cols="15" rows="2"></textarea>
<input class="txt" name="Submit" type="button" value="Send" />
</form>
<script type="text/javascript">
<?php
if(isset($_REQUEST['email']) && isset($_REQUEST['message']))
{
$to="kiruthigabaskaran@gmail.com";
$subject="Feedback/Enquiry";
$mail=$_REQUEST['email'];
$message=$_REQUEST['message'];
$header="From:$mail";
$send=mail($to,$subject,$message,$header);
if($send)
{
echo "alert('Your feedback or enquiry is sent successfully!');";
}
else
{
echo "alert('Enter all the fields properly!');";
}
}
?>
</script>
</section>