NYCPHP Meetup

NYPHP.org

[nycphp-talk] POST to mail

Bhulipongsanon, Pinyo Pinyo.Bhulipongsanon at usa.xerox.com
Thu Jun 19 17:46:51 EDT 2003


just 2 lines:

	foreach (array_keys($_POST) as $key ) { $mailBody .=
"$$key=$_POST[$key]\
"; }
	@mail($admin_email, $email_title, $mailBody, $optional_header);

Enjoy :-)

-----Original Message-----
From: Christopher Hendry [mailto:chendry at nyc.rr.com]
Sent: Thursday, June 19, 2003 2:30 PM
To: NYPHP Talk
Subject: [nycphp-talk] POST to mail


Anyone know a quick and painless way I can dump POST vars into a format that
will be somewhat readable to the layperson receiving it via the mail()
function?

Thanks.
Chris



--- Unsubscribe at http://nyphp.org/list/ ---




More information about the talk mailing list