ho dimenticato di dire che il listato inviato prima fa parte del file esterno al flash con estensione .PHP......
ho dimenticato di dire che il listato inviato prima fa parte del file esterno al flash con estensione .PHP......
spidermassi
devo aver fatto un mini casino con l'invio del primo messaggio e non ho idea dove sia stato mandato
scusate. invio nuovamente il quesito.
ho fatto un mail form in flash e ho un problema che non riesco a risolvere. quando la mail arriva al destinatario del form non mi compare una delle variabili: sender_message.
Qualcuno mi può aiutare?
questo qua sotto è il listato del file .php. presumo che il file flash funzioni e che il problema sia qui
ciao e grazie
<?
if(!empty($HTTP_POST_VARS['sender_mail']) || !empty($HTTP_POST_VARS['sender_message']) || !empty($HTTP_POST_VARS['sender_subject']) || !empty($HTTP_POST_VARS['sender_cell']) || !empty($HTTP_POST_VARS['sender_name']))
{
$to = "info@pippo.com";
$subject = stripslashes($HTTP_POST_VARS['sender_subject']);
$body = stripslashes($HTTP_POST_VARS['sender_message']);
$body = stripslashes($HTTP_POST_VARS['sender_cell']);
$body .= "\n\n---------------------------\n";
$body .= "Mail inviata da: " . $HTTP_POST_VARS['sender_name'] . " <" . $HTTP_POST_VARS['sender_mail'] . ">\n";
$header = "From: " . $HTTP_POST_VARS['sender_name'] . " <" . $HTTP_POST_VARS['sender_mail'] . ">\n";
$header .= "Reply-To: " . $HTTP_POST_VARS['sender_name'] . " <" . $HTTP_POST_VARS['sender_mail'] . ">\n";
$header .= "X-Mailer: PHP/" . phpversion() . "\n";
$header .= "X-Priority: 1";
if(@mail($to, $subject, $body, $header))
{
echo "output=sent";
} else {
echo "output=error";
}
} else {
echo "output=error";
}
?>
spidermassi
ciao, alla fine sono riuscito a far funzionare il tutto x conto mio(miracolo),
qualcuno però mi potrebbe dire se c'è un qualcosa nel listato php che potrebbe dare qualche problema (magari a seconda del browser...boh, io di php nn so NULLA)
questo qua sotto è il listato .
alla fine giocando col codice sono riuscito a fare comparire tutte le variabili nella mail e di far mettere il num_cell e a capo num_persone.
il tutto funziona ma vorrei essere sicuro che la cosa durasse....
grazie ciao
<?
if(!empty($HTTP_POST_VARS['sender_mail']) && !empty($HTTP_POST_VARS['sender_message']) && !empty($HTTP_POST_VARS['sender_subject']) && !empty($HTTP_POST_VARS['sender_cell']) && !empty($HTTP_POST_VARS['sender_name']))
{
$to = "info@pippo.com";
$subject = stripslashes($HTTP_POST_VARS['sender_subject']);
$body .= "cell num: " . $HTTP_POST_VARS['sender_cell'] . "\n";
$body .= "num persone: " . $HTTP_POST_VARS['sender_message'];
$body .= "\n\n---------------------------\n";
$body .= "Mail inviata da: " . $HTTP_POST_VARS['sender_name'] . " <" . $HTTP_POST_VARS['sender_mail'] . ">\n";
$header = "From: " . $HTTP_POST_VARS['sender_name'] . " <" . $HTTP_POST_VARS['sender_mail'] . ">\n";
$header .= "Reply-To: " . $HTTP_POST_VARS['sender_name'] . " <" . $HTTP_POST_VARS['sender_mail'] . ">\n";
$header .= "X-Mailer: PHP/" . phpversion() . "\n";
$header .= "X-Priority: 1";
if(@mail($to, $subject, $body, $header))
{
echo "output=sent";
} else {
echo "output=error";
}
} else {
echo "output=error";
}
?>
spidermassi