Re: help with php
| From: | DvDmanDT | Date: | Wed, 30 Jul 2003 00:05:39 +0000 |
| Subject: | Re: help with php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-157470@lists.php.net to get a copy of this message | ||
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: dvdmandt@hotmail.com
Mail: dvdmandt@telia.com
"Billy" <kacabula@comcast.net> skrev i meddelandet
news:20030729232416.26266.qmail@pb1.pair.com...
> 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
>
>