General Question

VisionaryAdvait's avatar

Where can I find a stylish free contact web form for my website?

Asked by VisionaryAdvait (167points) January 30th, 2009

I am looking for a fair looking or basic free contact web form for my website where people can enter their name, and enter their message then it will email me. Any recommendations anyone?

Observing members: 0 Composing members: 0

5 Answers

cyberhill's avatar

Wufoo.com makes it really easy, we use it for the signup form on TheHive.org.au if you want to check it out.

smartbob's avatar

It depends on which programming language you are using or if you are using a cms. All major CMS’s have contact forms built in (drupal, joomla, dragonfly). If you are using php for your site search for php contact form. The nicer ones have captcha built in to help avoid spam. If you want to just make one yourself they are really easy. On the page you want the form to be on, make a <form> set of tags and then use <input type=“text” for the text boxes. set the form action to submit.php. then create a submit.php file that pulls the post data and sends an email. Here is a sample of what can be in submit.php
$name = $_REQUEST[‘name’];
$email = $_REQUEST[‘email’];
$message = $_REQUEST[‘message’];
$to .= “youremailaddress@domain.com”;
$subject = “example.com Contact Form”;
$headers = “From: contactform@example.com\r\n”;
$headers .=“Reply-To: $email\r\n”;
$headers .= “Content-Type: text/html\r\n”;

$body = “This information was submitted by the form at example.com/about.php<br/>\n\n”;
$body = “The users IP is: ”.$_SERVER[‘REMOTE_ADDR’].”<br/>\n\n”;
$body .= “Name:<br/>\n”.$name.”<br/><br/>\n\n”;
$body .= “Email Address:<br/>\n”.$email.”<br/><br/>\n\n”;
$body .= “Message:<br/>\n”.$message.”<br/><br/>\n\n”;

$body = stripslashes($body);
if(mail($to, $subject, $body, $headers)){
//Header(‘Location: http://www.example.com/thanks');
echo “Thank you for your comments. A member of our staff will recieve this message shortly and will respond personally if the situation warrants such a response.”;
return;
}else{
//Header(‘Location: http://www.example.com/fail');
echo “There was a problem sending the message. Either the mail system is down for maintenance, or you have entered invalid characters in one of the input fields.<br/>”;
}

xxxciter's avatar

try the FREE webmaster tools at BraveNet

forestGeek's avatar

I’ve used FormMail and it worked great for me. You can stylize the form yourself with CSS.

Response moderated

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther