I agree to Parker's post, but I think I understand you...
thescript.php:
<?
mail($_POST["to"],$_POST["subject"],
$_POST["message"],"From: ".$_POST["from"]);
?>
That script or command requires the following form:
<form method="post" action="thescript.php">
Send to this email: <input type="text" name="to"><br>
Your email: <input type="text" name="from"><br>
Subject: <input type="text" name="subject"><br>
Message: <textarea name="message"></textarea>
<p></p>
<input type="submit" value="send">
</form>
Maybe this what you wanted, maybe not.. :p
--
// DvDmanDT
MSN: [EMAIL PROTECTED]
Mail: [EMAIL PROTECTED]
"Billy" <[EMAIL PROTECTED]> skrev i meddelandet
news:[EMAIL PROTECTED]
> hi im new to php. but i need help with a form. ive made an html form but
the
> thing is i needed it to send all the info from the boxes above to an
e-mail.
> this is my first time with this type of web design could someone help me
> out. thanks
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php