Navigazione

    Privacy - Termini e condizioni
    © 2020 Search On Media Group S.r.l.
    • Registrati
    • Accedi
    • CATEGORIES
    • Discussioni
    • Non letti
    • Recenti
    • Hashtags
    • Popolare
    • Utenti
    • Stream
    • Interest
    • Categories
    1. Home
    2. michelis
    3. Post
    M

    michelis

    @michelis

    • Profilo
    • Chi segue 0
    • Da chi è seguito 0
    • Discussioni 1
    • Post 1
    • Migliore 0
    • Gruppi 0
    Iscrizione Ultimo Accesso
    Località mondovi
    0
    Reputazione
    1
    Post
    0
    Visite al profilo
    0
    Da chi è seguito
    0
    Chi segue
    User Newbie

    Post creati da michelis

    • il form html-php non invia l'immagine dove sbaglio? grazie a chi mi aiuterà.

      il listato html

      <form action="./mail.php" method="POST">
      <table border="0">
      <tbody>
      <tr>
      <td>Nome</td>
      <td><input name="Nome" size="30" type="text"></td>
      </tr>
      <tr>
      <td>Cognome</td>
      <td><input name="Cognome" size="30" type="text"></td>
      </tr>
      <tr>
      <td>Ragione sociale</td>
      <td><input name="Ragionesociale" size="35" type="text"></td>
      </tr>
      <tr>
      <td>Indirizzo</td>
      <td><input name="Indirizzo" size="30" type="text"></td>
      </tr>
      <tr>
      <td>cap</td>
      <td><input name="Cap" size="5" type="text"></td>
      </tr>
      <tr>
      <td>Citta</td>
      <td><input name="Citta" size="30" type="text"></td>
      </tr>
      <tr>
      <td>Provincia</td>
      <td><input name="Provincia" size="30" type="text"></td>
      </tr>
      <tr>
      <td>Partita iva</td>
      <td><input name="Partitaiva" size="13" type="text"></td>
      </tr>
      <tr>
      <td>e-mail</td>
      <td><input name="e-mail" size="35" type="text"></td>
      </tr>
      <tr>
      <td>il tuo banner</td>
      <td><input name="file" type="file"></td>
      </tr>
      <tr>
      <td valign="top">pagina e province</td>
      <td><textarea rows="6" name="Note" cols="50"></textarea></td>
      </tr>
      <tr>
      <td colspan="2" align="center" height="30" valign="bottom">
      <input value="Invia" type="submit"> <input value="Cancella"

      type="reset"></td>

      il listato php

      <!doctype html>
      <html>
      <head>
      <meta charset="utf-8">
      <title>modulo</title>
      </head>

      <body>
      <?php

      // L'INDIRIZZO DEL DESTINATARIO DELLA MAIL
      $to = "pubblicita@xxx";

      // IL SOGGETTO DELLA MAIL
      $subject = "Modulo proveniente dal sito xxx";

      // COSTRUIAMO IL CORPO DEL MESSAGGIO
      $body = "Contenuto del modulo:\n\n";
      $body .= "Nome: " . trim(stripslashes($_POST["Nome"])) . "\n";
      $body .= "Cognome: " . trim(stripslashes($_POST["Cognome"])) . "\n";
      $body .= "Ragionesociale: " . trim(stripslashes($_POST["Ragionesociale"])) . "\n";
      $body .= "Indirizzo: " . trim(stripslashes($_POST["Indirizzo"])) . "\n";
      $body .= "Cap: " . trim(stripslashes($_POST["Cap"])) . "\n";
      $body .= "Citta: " . trim(stripslashes($_POST["Citta"])) . "\n";
      $body .= "Provincia: " . trim(stripslashes($_POST["Provincia"])) . "\n";
      $body .= "Partitaiva: " . trim(stripslashes($_POST["Partitaiva"])) . "\n";
      $body .= "e-mail: " . trim(stripslashes($_POST["e-mail"])) . "\n";
      $body .= "file: " . trim(stripslashes($_POST["file"])) . "\n";
      $body .= "Note: " . trim(stripslashes($_POST["Note"])) . "\n";

      // INTESTAZIONI SUPPLEMENTARI
      $headers = "From: Modulo utentimodulo@xxx";

      // INVIO DELLA MAIL
      if(@mail($to, $subject, $body, $headers)) { // SE L'INOLTRO È ANDATO A BUON FINE...

      echo "La mail è stata inoltrata con successo. Sarete contattati quanto prima. Grazie ";

      } else {// ALTRIMENTI...

      echo "Si sono verificati dei problemi nell'invio della mail.";

      }
      ?>
      </body>
      </html>

      postato in Coding
      M
      michelis