Visualizzazione dei risultati da 1 a 5 su 5

Discussione: mail form

  1. #1

    mail form

    ho dimenticato di dire che il listato inviato prima fa parte del file esterno al flash con estensione .PHP......
    spidermassi

  2. #2

    mail form

    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

  3. #3
    up
    spidermassi

  4. #4
    up
    spidermassi

  5. #5

    mail form

    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

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.