create a html form, name the fields whatever you like, name, email, message etc. then save this as contact.php <?php $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['message']; $dbhost = 'localhost'; $dbusername = 'database-username-here'; $dbpasswd = 'database-password-here'; $database_name = 'database-name-here'; $connection = mysql_pconnect("$dbhost","$dbusername","$dbpasswd") or die ("Couldn't connect to server."); $db = mysql_select_db("$database_name", $connection) or die("Couldn't select database."); $query = mysql_query("INSERT INTO `contact` (name, email, message) VALUES ('$name', '$email', '$message')"); if (!$query) { echo "there was an error sending the message. please try again."; } else { echo "your message was sent successfully."; } ?> worth paying $30 for? no.
man why do you charge so much for a few lines of code.. i dont think you ll progress if you dp business like this..
There so many php contact form script. Here some http://www.google.com/search?q=php+...s=org.mozilla:en-US:official&client=firefox-a