Ah allora è nella sessione $carrello.
Quindi nella mail una roba del genere?
Codice PHP:
<?php
$to = "ordini@inlegnogioco.it";
$subject = "Ordine da [url]www.inlegnogioco.it[/url]";
$body = "Ordine:\n\n";
$body .= "Prodotti: " . trim(stripslashes($carrello)) . "\r \n";
$body .= "Nome: " . trim(stripslashes($_POST["nomeutente"])) . "\r \n";
$body .= "Cognome: " . trim(stripslashes($_POST["cognome"])) . "\r \n";
$body .= "Indirizzo: " . trim(stripslashes($_POST["indirizzo"])) . "\r \n";
$body .= "Città: " . trim(stripslashes($_POST["citta"])) . "\r \n";
$body .= "Provincia: " . trim(stripslashes($_POST["provincia"])) . "\r \n";
$body .= "Telefono: " . trim(stripslashes($_POST["telefono"])) . "\r \n";
$body .= "E-mail: " . trim(stripslashes($_POST["email"])) . "\r \n";
$headers = "From: " . trim(stripslashes($_POST["email"])) . "\r \n";
$headers .= "<" . $_POST["email"] . ">\r\n";
$headers .= "Reply-To: " . $_POST["email"] . "\r\n";
$headers .= "Return-Path: " . $_POST["email"];
if(@mail($to, $subject, $body, $headers))
{
echo "La mail contenente i dettagli dell'ordine è stata inoltrata con successo.";
}
else
{
echo "Si sono verificati dei problemi nell'invio della mail.";
}
?>
Come recupero i dati da $carrello come i dati in post?
Grazie mille per l'aiuto.