I'm trying to create a button that you push and it takes you to a page that has the following:
dropdown menu (displays emails)
and a submit button
what I want it to do is you pick an email. put a subject in and cilck the button and it sens.
this is the information I have..
that brings me to the page with the dropdown menu, subject, comments and submit button..
<input type="submit name="email">
this is that page I was mentioning..
from:<input type="text" name="email"> <br />
Subject:<textarea> </textarea> <br />
and this is the code I have been trying to figure out how to put it all together...
if anyone can help me with this that would be super! its driving me nuts!
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$formcontent="From: $name \n Message: $message";
/* <![CDATA[ */
/* ]]> */
$subject = "Contact Form";
$mailheader = "From: $email \r\n";
mail($recipient, $subject, $formcontent, $mailheader) or die("Error!");
echo "Thank You!";