Visualizzazione dei risultati da 1 a 3 su 3

Discussione: form mail

  1. #1
    Utente di HTML.it
    Registrato dal
    Jan 2012
    Messaggi
    62

    form mail

    Ciao ragazzi, sto creando un sito interamente in flash ma mi sto bloccando sull'inserimento di un form mail. Ho creato di base la grafica, quindi ho inserito tutti i vari campi, i pulsanti per inviare e per resettare. Cerco da tempo tutorial o guide che mi aiutino a far si che il form funzioni ma non ne ho trovati al caso mio. Qualcuno mi saprebbe aiutare?Se fosse possibile crearlo senza php sarebbe meglio dato che non ne capisco nulla. Se non fosse possibile, spero almeno ci sia qualcuno di buon cuore che mi spieghi i passaggi da fare!Vi ringrazio tanto Ne ho tanto bisogno. Il sito è ultimato!!Manca solo questo!!!

  2. #2
    Utente di HTML.it
    Registrato dal
    Jan 2012
    Messaggi
    62

    Re: form mail

    Originariamente inviato da valea
    Ciao ragazzi, sto creando un sito interamente in flash ma mi sto bloccando sull'inserimento di un form mail. Ho creato di base la grafica, quindi ho inserito tutti i vari campi, i pulsanti per inviare e per resettare. Cerco da tempo tutorial o guide che mi aiutino a far si che il form funzioni ma non ne ho trovati al caso mio. Qualcuno mi saprebbe aiutare?Se fosse possibile crearlo senza php sarebbe meglio dato che non ne capisco nulla. Se non fosse possibile, spero almeno ci sia qualcuno di buon cuore che mi spieghi i passaggi da fare!Vi ringrazio tanto Ne ho tanto bisogno. Il sito è ultimato!!Manca solo questo!!!
    RETTIFICO: sono riuscita a trovare una guida...il codice php è il seguente


    <?php
    /************************************************** *\
    * PHP 4.1.0+ version of email script. For more
    * information on the mail() function for PHP, see
    * http://www.php.net/manual/en/function.mail.php
    \************************************************* **/


    // First, set up some variables to serve you in
    // getting an email. This includes the email this is
    // sent to (yours) and what the subject of this email
    // should be. It's a good idea to choose your own
    // subject instead of allowing the user to. This will
    // help prevent spam filters from snatching this email
    // out from under your nose when something unusual is put.

    $sendTo = "***gi@libero.it";
    $subject = "prova mail";

    // variables are sent to this PHP page through
    // the POST method. $_POST is a global associative array
    // of variables passed through this method. From that, we
    // can get the values sent to this page from Flash and
    // assign them to appropriate variables which can be used
    // in the PHP mail() function.


    // header information not including sendTo and Subject
    // these all go in one variable. First, include From:
    $headers = "From: " . $_POST["nome"] ." ". $_POST["cognome"] . "<" . $_POST["email"] .">\r\n";
    // next include a replyto
    $headers .= "Reply-To: " . $_POST["email"] . "\r\n";
    // often email servers won't allow emails to be sent to
    // domains other than their own. The return path here will
    // often lift that restriction so, for instance, you could send
    // email to a hotmail account. (hosting provider settings may vary)
    // technically bounced email is supposed to go to the return-path email
    $headers .= "Return-path: " . $_POST["email"];

    // now we can add the content of the message to a body variable
    $message = $_POST["note"];


    // once the variables have been defined, they can be included
    // in the mail function call which will send you an email
    mail($sendTo, $subject, $message, $headers);

    ?>


    Ma se volessi far si che nell'email arrivi non solo il testo del campo "note", ma anche quello del nome, cognome, indirizzo, cap, città e tutto il resto, come devo dichiarare le variabili, ecc?!
    Please un piccolo aiutino

  3. #3
    Utente di HTML.it
    Registrato dal
    Jan 2012
    Messaggi
    62

    nessuna risposta?

    Nessuno che mi risponde?

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