Código PHP:
<?
/****************************************/
/* phpMyFormmail 1.1 */
/* (c) 2003 Manuel M-M */
/* Released under GNU-Public-Licence */
/****************************************/
# Before you start configuring the system it`s recommend to read "install.txt"
# Your suggestions, and so, are welcome.
# So send me these. Problems, errors, ... are also welcome.
# If you`ve problems with the script, send me a mail.
/* CONFIGURATION START */
/****************************************/
/* Enter your Domain... you can also enter $SERVER_NAME if that`s working too!? */
$allowed_domain = "$SERVER_NAME";
/* Here you can define the starting text of the email */
$start = "The form with the subject $subject has been submitted. The following is the raw data of that form.\n\n"; /* This is the start text of your email */
/* Now enter the way you post the form... (You can enter POST or GET) - POST HAS GOT MORE SECURITY!!! */
$vartype = "POST";
/* Show the user`s all errors (no php) - "true" :YES, "false" :NO */
$show_errors = true;
/* CONFIGURATION END */
/****************************************/
/* Do not edit the following codes... */
$recipient_mail = explode("@",$recipient);
$recipient_domain = $recipient_mail[1];
if ((!$recipient == "") && (!$recipient2 == "") && (!$redirect == "") && (!$subject == "") && (!$recipient_domain == "$allowed_domain"))
{
$error = "In the formular where you entered your
data is an error, because the webmaster forgot to<br>
create the hidden fields <i>recipient,redirect or subject.</i>";
} else {
$line = "0";
$vartype = strtolower($vartype);
if ($vartype == "get") {
foreach ($HTTP_GET_VARS as $name => $value) {
if (!$line) {
$line = "$name : $value\n";
$line++;
} else {
$inhal .= "$name : $value\n";
$line++;
}
}
} else {
foreach ($HTTP_POST_VARS as $name => $value) {
if (!$line) {
$line = "$name : $value\n";
$line++;
} else {
$inhal .= "$name : $value\n";
$line++;
}
}
}
if ($headers == "") { $headers = ""; }
$headers .= "From: <Orderfromwebsite@$allowed_domain>\r\n";
$headers .= "X-Mailer: phpMyFormmail 1.1";
$recipientt = $recipient; $recipient2;
$msg = $start;
$msg .= $inhal;
if ((mail($recipientt, $subject, $msg, $headers)) && ($error == "")) {
header("location: $redirect");
} else {
if ($error == "") {
$error = "There was an error while trying to send email";
}
}
}
if ($show_errors) { echo $error; die(); }
?>
Bien, ese me recibe tooooooooodos los campos ocultos y visibles de un formulario
lo que quiero hacer es que cuando recibo esto
Código HTML:
The form with the subject Asunto del mensaje has been submitted. The following is the raw data of that form. p1qty : 25 product2 : on p2qty : 50 product3 : on p3qty : 12 product4 : on p4qty : 5 recipient : [email protected],[email protected] redirect : ../../ subject : Asunto del mensaje client : Clínica de no me acuerdo donde.... jejeje id : Name : Samuel Marchán Fernández JobPosition : Administrator Email : [email protected] Phone : 00510739460505 DeliverDate : 09/24/2007 Obs : p1qty button : Place Order
o sino recomiendenme algún procesador de formularios que me mande los campos de un form a mi correo y que le pueda aplicar estilo.
Gracias!