Re: Newbie Question - Form To Email Needed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



1st page:

<form>
    <textarea name='thebody'></texarea>
</form>

2nd page:

$str_body = $_POST['thebody'];
mail('the_email_that_you_want_to_send_to@xxxxxxxxxxxx', 'This is the 
subject', $str_body);

Of course you can have the email and the subject fields come also from the 
1st page.

Hope that helps!

-- 
itoctopus - http://www.itoctopus.com
"revDAVE" <coolcat@xxxxxxxxxxxxxxxx> wrote in message 
news:C26138B4.122E2%coolcat@xxxxxxxxxxxxxxxxxxx
> Hi folks,
>
> I have a form on page one - and would like to submit to a second page in 
> PHP
> that could grab the fields and send it out as an e-mail.
>
> Are there any links that show how do this?
>
>
> Thanks in advance - Dave
>
>
> --
> Thanks - RevDave
> CoolCat@xxxxxxxxxxxxxxxx
> [db-lists] 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux