backbone
12.04.2002, 19:34:42
hi leute ich hab ma en script für ne formmail gefunden der is au sehr interessant und funzt aber ich kapier einen befehl nich schaut euch das teil ma an:
<?php
$fmtResponse= implode("", file("response.htt"));
$fmtMail= implode("", file("mail.htt"));
foreach($HTTP_POST_VARS as $key=> $val) {
$fmtResponse= str_replace("<$key>", $val, $fmtResponse);
$fmtMail= str_replace("<$key>", $val, $fmtMail);
}
mail($HTTP_POST_VARS["recipient"], $HTTP_POST_VARS["subject"], $fmtMail);
echo $fmtResponse;
?>
was heißt das => bei foreach($HTTP_POST_VARS as $key=> $val)
kann mir das ma bidde jemand sagen wäre sehr dankbar dafür cya
<?php
$fmtResponse= implode("", file("response.htt"));
$fmtMail= implode("", file("mail.htt"));
foreach($HTTP_POST_VARS as $key=> $val) {
$fmtResponse= str_replace("<$key>", $val, $fmtResponse);
$fmtMail= str_replace("<$key>", $val, $fmtMail);
}
mail($HTTP_POST_VARS["recipient"], $HTTP_POST_VARS["subject"], $fmtMail);
echo $fmtResponse;
?>
was heißt das => bei foreach($HTTP_POST_VARS as $key=> $val)
kann mir das ma bidde jemand sagen wäre sehr dankbar dafür cya