I used template to create my website. I would like to know how to create a simple contact form and customer review for my website. Thanks.
<?php if (isset($_REQUEST['email'])) //if "email" is filled out, send email { //send email $email = $_REQUEST['email'] ; $subject = $_REQUEST['subject'] ; $message = $_REQUEST['message'] ; mail( "[B]YourEmail@YourEmail.com[/B]", "Subject: $subject", $message, "From: $email" ); echo "Thank you for using our mail form"; } else //if "email" is not filled out, display the form { echo "<form method='post' action='WEBPAGE.php'> Email: <input name='email' type='text' /><br /> Subject: <input name='subject' type='text' /><br /> Message:<br /> <textarea name='message' rows='15' cols='40'> </textarea><br /> <input type='submit' /> </form>"; } ?> Code (markup): try that mate just edit the YourEmail bit
Tandy's looks like it will do the trick... I have always used this one: http://css-tricks.com/nice-and-simple-contact-form/ Its very clean and simple, and easy to integrate