Problem with a my function and a simple mail
| From: | n e t b r a i n | Date: | Thu, 24 Aug 2000 03:18:07 +0000 |
| Subject: | Problem with a my function and a simple mail | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-13219@lists.php.net to get a copy of this message | ||
Hi,
in order to print some values submitted by a client form in a simply email
in text format, I've tried to write in php3 a simple function that doesn't
seem to work right ...
function list_my_values($var_array) {
while(list($key,$value)=each($var_array)) {
echo("".stripslashes(strip_tags(escapeshellcmd($key))).":
".stripslashes(strip_tags(escapeshellcmd($value)))."");
}
}
and then, I've inserted it in a mail function in order to send the form
values to me:
mail($me,$subject,"
HI,
these value were submitted:
---------------------------
".list_my_values($fuseVarMust)."
---------------------------
");
The big problem is that my function doesn't print anything in the body of
the email: instead, it sends the print out to the client browser ...
Any suggestion or idea is very appreciated.
many thanks in advance.
max