Re: Newbie Question - Form To Email Needed

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

 



On 5/4/2007 7:40 PM, "Brad Sumrall" <Brads@xxxxxxxxx> wrote:

> Once again my friend,
> Where are the fields?
> There physical 411?
> Database?
> Incoming email?
> Out going email?
> Flat file?


Hello Brad, 

I apologize if I not being clear enough, - I was thinking that there would
simply be a basic Web-Page (page 1) with EMPTY input fields ( that are not
tied to a data source at all) on a form so that the user could fill it out -
click the submit button - and it could go to a second page (PHP) -  that can
process the incoming fields and send an email to an email address...


PAGE 1: Just a basic web page form with a few fields inside like - name -
address etc:

<form action="sendmail.php" method="post">
<input name="name" type="text">
<input name="email" type="text">
</form>


PAGE 2: ... Some kind of PHP sendmail function...

- this is the way I would do it in ColdFusion ( simply going from page 1 to
page 2 that would send an email e-mail (with no database needed))


<cfmail 
to="info@xxxxxxxxxx"
from="somebody"
server="mail.domain.com"
subject="Some mail">

Name is: #form.name#
Email is : #form.email#

Thanks, 
US
</cfmail>

Q: is there some kind of mail command like this for PHP?



> 
> Brad
> 
> -----Original Message-----
> From: revDAVE [mailto:coolcat@xxxxxxxxxxxxxxxx]
> Sent: Friday, May 04, 2007 10:36 PM
> To: php-general@xxxxxxxxxxxxx
> Cc: Brad Sumrall
> Subject: Re:  Newbie Question - Form To Email Needed
> 
> On 5/4/2007 7:29 PM, "Brad Sumrall" <Brads@xxxxxxxxx> wrote:
> 
>> Where are the fields?
> 
> 
> Hi Brad,
> 
> 
> Just a basic form with a few fields inside like - name - address etc lie:
> 
> 
> 
> <form action="sendmail.php" method="post">
> <input name="name" type="text">
> <input name="email" type="text">
> </form>
> 
> --
> Thanks - RevDave
> CoolCat@xxxxxxxxxxxxxxxx
> [db-lists]
> 
> 
> 
> 
> 
> 
> 


--
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