Visualizzazione dei risultati da 1 a 3 su 3

Discussione: form mail, swf e php

  1. #1

    form mail, swf e php

    Buongiorno a tutti,

    Ho utilizzato un form mail php scritto da sephyroot, per inviare dati dal sito internet e funziona molto bene quando l'html principale carica un file swf nel quale è contenuto il tasto per spedire il messaggio.
    I problemi si hanno invece se l'html principale richiama un swf che chiama a sua volta un swf secondario, nel quale è contenuto il tasto di spedizione.
    In questo caso non c'è nulla da fare e la mail non viene spedita.

    Cosa posso fare? Consigliatemi qualcosa..

    Grazie e ciao.

    utah

  2. #2
    posta il codice che usa sephiroth per inviare la mail (non lo tengo presente ).

    regalami un oggi da favola...e il domani bhe!?non mi importa se tu 6 con me! ©Ily

  3. #3
    Questo è contenuto nel frame..

    // add the listener to the Key onj
    k = new Object();
    k.onKeyUp = function()
    {
    if(Sname.text != ''
    && Semail.text != ''
    && Ssubject.text != ''
    && Smessage.text != '')
    {
    // enable btn
    sendMC.sendButton.enabled = true;
    } else {
    // diable
    sendMC.sendButton.enabled = false;
    }
    }
    Key.addListener(k);

    // set starting status
    // for SEND button
    sendMC.sendButton.enabled = false;
    // stop on current frame
    stop();



    Questo è invece il contenuto del php..

    <?
    if(!empty($HTTP_POST_VARS['sender_mail']) || !empty($HTTP_POST_VARS['sender_message']) || !empty($HTTP_POST_VARS['sender_subject']) || !empty($HTTP_POST_VARS['sender_name']))
    {
    $to = "alessandro@sephiroth.it";
    $subject = stripslashes($HTTP_POST_VARS['sender_subject']);
    $body = stripslashes($HTTP_POST_VARS['sender_message']);
    $body .= "\n\n---------------------------\n";
    $body .= "Mail sent by: " . $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";
    }
    ?>

    Grazie Yassassin
    utah

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 © 2025 vBulletin Solutions, Inc. All rights reserved.