sarebbe PHP ma comunque...
non ricordo la sintassi, comunque è probabile che l'errore sia in flash e lo script in PHP semplicemente non lo vede
dovresti sostituire "||" con "&&" se li vuoi tutti, perchè tutti devono essere verificati come pieni, così come hai fatto verifichi solo che se "almeno" uno di questi non è vuoto allora vai avanti
codice:<? 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_sub ject']); $body = stripslashes($HTTP_POST_VARS['sender_mes sage']); $body = stripslashes($HTTP_POST_VARS['sender_cel l']); $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"; } ?>

Rispondi quotando