Forum Moderators: coopster

Message Too Old, No Replies

Email contents of $ REQUEST

         

Bingo

9:32 am on Jun 16, 2008 (gmt 0)

10+ Year Member



Hi,

I need help, trying to email myself the contents of the $_REQUEST array using the mail function?

thanks.

jatar_k

12:08 pm on Jun 16, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



maybe something like this will help

[webmasterworld.com...]

Bingo

9:34 am on Jun 20, 2008 (gmt 0)

10+ Year Member



Thanks,

I solved this by storing the data from the $_REQUEST array into a string and then emailing the string... kinda simple really!


<?php
$string = '';
foreach ($_REQUEST as $value) {
$string .= $value.'<br>';
}
// OUTPUT STRING USED FOR EMAIL
echo $string;
?>

[edited by: Bingo at 9:34 am (utc) on June 20, 2008]