View Single Post
  #3 (permalink)  
Old 06-10-09, 04:27 PM
xEX3CUT1ONx xEX3CUT1ONx is offline
Wannabe Coder
 
Join Date: Jun 2008
Posts: 116
Thanks: 2
Thanked 0 Times in 0 Posts
Well from what I could gather from your question is you want a simple form well the most simple I can show it to you is a contact form the easiest way to do this would be in PHP so thats what I did for you, however this small script doesn't have any validation in so they could send blank emails but this is just something i threw together in a minute or two

PHP Code:

<form action="contact.php" method="post">

Name: <input type="text" name="name"  />
<br />
E-Mail: <input type="text" name="email" />
<br />
Subject: <input type="text" name="subject" />
<br />
Message: <textarea name="message" rows="4" cols="25"></textarea>
<br />
<input type="submit" value="Send!" />
</form>

<?php

//First get the information that the user entered and create smaller named variables

$name $_POST['name'];
$email $_POST['email'];
$subject $_POST['subject'];
$message $_POST['message'];

// Your Email address

$your_email "bob@smith.com";

mail($your_email,$subject,$message,"From: $email");


?>
PM if you need any assistance
Reply With Quote