Erelid |
|
jawel metalhead, het kan wel:
<?php
if ($_SERVER['REQUEST_METHOD']=="POST"){
$msg="Values submitted by the usern";
foreach($_POST as $key => $val){
if (is_array($val)){
$msg.="Item: $key\n";
foreach($val as $v){
$v = stripslashes($v);
$msg.=" $v\n";
}
} else {
$val = stripslashes($val);
$msg.="$key: $val\n";
}
}
$recipient="black_jezus85@hotmail.com";
$subject="/// Feedback on Blackjezus.com ///";
error_reporting(0);
$header = "From: ".$naam."<".$emailadres.">";
if (mail($recipient, $subject, $msg,$header)){
?>
...
<HTML>
<HEAD>
...
</HEAD>
<BODY>
...
</BODY>
</HTML>
<?php
} else
echo "An error occurred and the order could not be sent. Try again later.";
} else
echo "Bad request method";
?>
<?php if ($_SERVER['REQUEST_METHOD']=="POST"){ $msg="Values submitted by the usern"; foreach($_POST as $key => $val){ $msg.="Item: $key\n"; foreach($val as $v){ $msg.=" $v\n"; } } else { $msg.="$key: $val\n"; } } $recipient="black_jezus85@hotmail.com"; $subject="/// Feedback on Blackjezus.com ///"; $header = "From: ".$naam."<".$emailadres.">"; if (mail($recipient, $subject, $msg,$header)){ ?> ... <HTML> <HEAD> ... </HEAD> <BODY> ... </BODY> </HTML> <?php } else echo "An error occurred and the order could not be sent. Try again later."; } else echo "Bad request method"; ?>
Zo bijvoorbeeld, je kan natuurlijk $naam en $emailadres veranderen naar post variabelen ofzo.
edit: waarom bewerkte je je post lame |