View Full Version : Contact Us Form Script
Rigger
31-08-2006, 05:13 PM
I need 1, Post. please.
+Rep if u do
If you offer a small payment i could code one is easily customisable via CSS, valid XHTML and saves the messages into an Admin Panel :)
Jamie.
31-08-2006, 08:03 PM
www.techtuts.com
php coding >> near bottom xD
Recursion
31-08-2006, 08:40 PM
THYBAG.CO.UK the best site around ;P
Microsoft
04-09-2006, 10:24 AM
Ok here is a contact us script:
<?php
if ($_POST['submit']){
$name = strip_tags($_POST['name']);
$email = strip_tags($_POST['email']);
$comments = strip_tags($_POST['comments']);
$ip = $_SERVER['REMOTE_ADDR'];
$to = "YOUR EMAIL";
$subject = "Contact us";
$headers = "From: $email";
$message = "Contact us reply:
Name: $name
Email: $email
IP: $ip
Comments: $comments";
mail($to,$subject,$message,$headers);
echo "Sent!";
}
else
{
?>
<form method="post">
Name: <input type="text" name="name"><br>
Email: <input type="text" name="email"><br>
Comments: <textarea name="comments"></textarea><br>
<input type="submit" name="submit" value="Send!">
</form>
<?
}
?>
Hope this helps!
Dentafrice1
06-09-2006, 06:29 PM
Not that hard.. simple mail() function..
It you want to go really advanced make it insert into a MySQL Database then pull it out and be able to reply to it delete it ETC :)
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.