PHP Example
Screen shot
Contact us form

<?php
if  (isset($_POST[\"email\"]))
    {
    $to = \'imran.imran.ali8@gmail.com\';
    $emailsubject = \'Contact Us Form\';
    $mailheader = \"From: \".$_POST[\"email\"].\"\\r\\n\";
    $message_body = \"Name: \".$_POST[\"name\"].\"\";
    $message_body .= \"Mobile: \".$_POST[\"mobile\"].\"\";
    $message_body .= \"Email: \".$_POST[\"email\"].\"\";
    $message_body .= \"Comment: \".nl2br($_POST[\"comment\"]).\"\";
    $msg=mail($to,$emailsubject,$message_body,$mailheader) or die (\"Failure\");
   
    if($msg)
    echo \"<b>\";
    echo \"Your Query has been successfully submitted.\";
    echo \"</b>\";
}
?>
<html>
<head>
<title>PHP Example</title>
</head>
<body>
<form name=\"form\" action=\"#\" method=\"post\">
<table border=\"0\">
<tr>
<td>Your name:</td>
<td><input name=\"name\" type=\"text\" id=\"name\"></td>
</tr>
<tr>
<td>Mobile No:</td>
<td><input name=\"mobile\" type=\"text\" id=\"mobile\"></td>
</tr>
<td>Email address:</td>
<td><input name=\"email\" type=\"text\" id=\"email\"></td>
</tr>
<tr>
<td>Comment:</td>
<td><textarea name=\"comment\" cols=\"20\" rows=\"4\" id=\"comment\"></textarea></td>
</tr>
<tr>
<td>&nbsp;</td>
<td align=\"left\" valign=\"top\"><input type=\"submit\" name=\"Submit\" value=\"Send\"></td>
</tr>
</table>
</form>
</body>
</html>

You can download source code here