Re: Help Needed

From: Date: Wed, 16 Oct 2002 02:37:23 +0000
Subject: Re: Help Needed
Groups: php.general 
Request: Send a blank email to php-general+get-120056@lists.php.net to get a copy of this message
--- Pushpinder Singh Garcha <pgarcha@masterstream.com> wrote: > Hi > > I am trying to create an online survey using PHP > ...I am using MySQL as > the database and MAC OS Jaguar. I do not need the > results to be added to > the database. I need to be able to send the results > of the survey to an > email address....I know that this is possible using > MS FrontPage but > with PHP I am not so sure. Please help. The last time I did this, I did something like the following. Note that it all starts out with an HTML form with fields called "name" and "question1". The form action called a page containing the following. <!-- SEND EMAIL --> <? $to .= "<recipient@recipient.com>"; $subject = "This is the subject"; $message = "This is the message.... Name: $name Question 1: $question1"; $headers .= "From: Me <me@me.com>\r\n"; $headers .= "Cc: etc@etc.com\r\n"; mail($to, $subject, $message, $headers); ?> <!--END SEND EMAIL -->

« previous php.general (#120056) next »