working form with php? then you should post this in php anyways here is a simple form
Code:
<form name="contactus" action="submit.php" method="post">
Name: <input type="text" name="nm" /><br />
Email: <input type="text" name="mail" /><br />
Tel: <input type="text" name="tel" /><br />
Message: <textarea name="msg" rows="5" cols="25"></textarea><br />
<input type="submit" />
</form>
submit.php
Code:
<?php
$nm = htmlentities($_POST['nm'],ENT_QUOTES);
$mail = htmlentities($_POST['mail'],ENT_QUOTES);
$tel = htmlentities($_POST['tel'],ENT_QUOTES);
$msg = htmlentities($_POST['msg'],ENT_QUOTES);
$cnn = mysql_connect("localhost", "your db user name", "your db password");
mysql_select_db("your database");
$sql = "INSERT INTO feedback (name, email, telephone, message)VALUES ('$nm', '$mail', '$tel', '$msg')";
$result = mysql_query($sql);
echo "sucess";
?>
don't forget to setup your database