View Full Version : I need an email form
favikah
12-10-2004, 04:28 AM
i want my contact link on my website to open to an email form for visitors to fill out then submit instead of just opening to their default email how do I do this?
does this make sense? I've seen it on other websites.
Thanks.
reid315
12-10-2004, 04:36 AM
i'm sorry, but there are a ton of threads asking the same thing. please search HM.
photon
12-10-2004, 01:14 PM
Most people dislike filling out forms, just in case they are put on a spam list.
Id just leave it at putting your email on your site.
chilipie
12-10-2004, 02:33 PM
So you want a form so that people can send a message to your email address? This one needs PHP to work.
HTML (contact.htm):
<form action="contactprocess.php" method="get">
<p>
Name:<br />
<input type="text" name="Name" /><br />
Email:<br />
<input type="text" name="Email" /><br />
Subject:<br />
<input type="text" name="Subject" /><br />
Message:<br />
<textarea name="Message" rows="5" cols="20"></textarea><br />
<input type="submit" value="Submit" /> <input type="reset" value="Clear" />
</p>
</form>
This gives you 4 fields - name, email, subject and message. Now for the rest of it...
PHP (contactprocess.php):
<?php
error_reporting(0);
if(!empty($_GET['Name']) and !empty($_GET['Email']) and !empty($_GET['Subject']) and !empty($_GET['Message']))
{
mail("you@yourmail.com",$_GET['Subject'],$_GET['Me ssage'],"From:<".$_GET['Name'].">".$_GET['Email']) or die("Mail() Failed.");
header("refresh: 0; url=contactdone.htm");
}
else
{
die("Please check you filled in all of the form fields.");
}
?>
HTML (contactdone.htm):
<p>Thanks for emailing me!</p>
akshay
12-10-2004, 07:49 PM
but u can develoop a form and then let the visitors fill it and send it 2 u.. it is directly mailed to u.. so the visitiors dont need to use their email addresses..
it just uses i think.. css anf javascript.. i made it long back.. so dont remember it now.. but i can show u how to do it .. if u are interested
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.