NYCPHP Meetup

NYPHP.org

[nycphp-talk] POST to mail

Analysis & Solutions danielc at analysisandsolutions.com
Thu Jun 19 14:35:45 EDT 2003


On Thu, Jun 19, 2003 at 02:29:48PM -0400, Christopher Hendry wrote:
> 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?

$Body = implode("\
", $Array);

or

$Body = '';

foreach ($Array as $Key => $Val) {
    $Body .= "$Key:  $Val\
\
";
}

--Dan

-- 
     FREE scripts that make web and database programming easier
           http://www.analysisandsolutions.com/software/
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
 4015 7th Ave #4AJ, Brooklyn NY    v: 718-854-0335   f: 718-854-0409



More information about the talk mailing list