RE: [PHP] trigger email with submit button
| From: | Philip Olson | Date: | Fri, 03 Aug 2001 20:15:53 +0000 |
| Subject: | RE: [PHP] trigger email with submit button | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-61174@lists.php.net to get a copy of this message | ||
Yeah, make sure they're all valid variables. Also on a related note,
consider using isset() (or similar) instead as in the code below, if
$submit is not set then PHP will issue an error (E_NOTICE). Granted most
have error_reporting turned down enough to not show such errors, but it's
a thought.
if(isset($submit)) vs. if($submit)
</picky>
Regards,
Philip
On Fri, 3 Aug 2001, scott [gts] wrote:
> that would work great.
>
> you might, however, want to do some format checking
> on the $from, $to, etc... variables.
>
> if they're coming from the user
>
> > -----Original Message-----
> > From: Jerry Lake [mailto:jerryl@europa.com]
> > Sent: Friday, August 03, 2001 3:40 PM
> > To: php-general
> > Subject: [PHP] trigger email with submit button
> >
> >
> > I'm sure this is possible, but I'm not sure
> > if this is the right way to go about it.
> >
> > if ($submit) {
> > mail($from,$to etc...)
> > }
> >
> > any input is kindly regarded
> >
> > Jerry Lake
> > Interface Engineering Technician
> > Europa Communications - http://www.europa.com
> > Pacifier Online - http://www.pacifier.com
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-general-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>