Visualizzazione dei risultati da 1 a 4 su 4

Discussione: forum da compilare PHP

  1. #1

    forum da compilare PHP

    Ciao a tutti,
    ho fatto una pagina del mio sito in cui gli utenti compilano una serie di dati anagrafici, sempre nella stessa pagina c'è il tasto invia.
    Il tasto invia si collega a un'altra pagina in cui appare che la mail è stata spedita con successo. Fin qua tutto bene perchè il format funziona alla perfezione, l'unica ombra in tutta questa cosa è che alla mia casella di posta ne arrivano 2 di mail.
    Una compilata dall'utente, l'altra completamente bianca il cui mittente risulta essere lo stesso sito...
    per esempio, la mail di Paolo mi arriva così:

    Mitt: paolo@utente.com

    la seconda mail mi arriva così:

    Mitt: sito@sito.com

    sicuramente ho fatto qualche errore con il codice... potreste aiutarmi?
    Cloud

  2. #2
    senza codice ti può aiutare solo uno stregone
    http://codecanyon.net/category/all?ref=Manuelandro
    And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
    memories to be made

  3. #3
    questa è la prima schermata quella dove l'utente inserisce i dati:
    <table width="100%" border="0" cellspacing="0" cellpadding="10">
    <tr>
    <td width="50%" class="arancio"><div align="right"><span class="Stile3"><span class="arancio">Name and Surname: </span></span>

    </div></td>
    <td width="50%"><input type="text" name="name" size="30" align="center"/></td>
    </tr>
    <tr>
    <td class="arancio"><div align="right"><span class="arancio">Email:</span></div></td>
    <td><input type="text" name="mail" size="30" align="center"/></td>
    </tr>
    <tr>
    <td class="arancio"><div align="right"><span class="Stile3">Address (Street and Number):</span></div></td>
    <td><input type="text" name="address" size="30" align="center"/></td>
    </tr>
    <tr>
    <td class="arancio"><div align="right"><span class="Stile3">Zip code and City:</span></div></td>
    <td><input type="text" name="address2" size="30" align="center"/></td>
    </tr>
    <tr>
    <td class="arancio"><div align="right"><span class="Stile3">Country:</span></div></td>
    <td><input type="text" name="address3" size="30" align="center"/></td>
    </tr>
    </table>



    <input type="submit" value="Send Order" />
    <input type="reset" value="Re Fill" />
    </p>
    Cloud

  4. #4
    questa invece è quella che riceve i dati, mi manda l'email...

    <?php
    $subject = "";
    $body .= " Nome: " . trim(stripslashes($_POST["name"])) . "\n";
    $body .= " Mail: " . trim(stripslashes($_POST["mail"])) . "\n";
    $body .= " Indirizzo: " . trim(stripslashes($_POST["address"])) . "\n";
    $body .= "Cap e Città: " . trim(stripslashes($_POST["address2"])) . "\n";
    $body .= " Nazione: " . trim(stripslashes($_POST["address3"])) . "\n";

    // INTESTAZIONI SUPPLEMENTARI
    $headers = "From:" . trim(stripslashes($_POST["mail"])) . "\n";

    // INVIO DELLA MAIL
    @mail($to = "mail@mail.com", $subject, $body, $headers);

    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="it">
    <head><link rel="shortcut icon" href="http://00.menu/favicon.ico">
    <title></title>
    <link rel="stylesheet" type="text/css" href="squeezebox.css" />
    <style type="text/css">

    .demo-images
    {
    list-style: none;
    margin: 0;
    }

    .demo-images li
    {
    float: left;
    padding: 5px;
    width: 100px;
    height: 100px;
    text-align: center;
    }
    body {
    margin-left: 10px;
    margin-top: 10px;
    margin-right: 10px;
    margin-bottom: 10px;
    background-image: url();
    background-color: #000000;
    }
    .Stile2 { color: #E1E1E1;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    }
    </style>
    <script type="text/javascript" src="mootools.js"></script>
    <script type="text/javascript" src="squeezebox.js"></script>
    <script type="text/javascript">
    <!--
    /* <![CDATA[ */

    window.addEvent('domready', function() {

    /**
    * You can run this code as first code to set default options
    * SqueezeBox.initialize({ ... });
    */


    SqueezeBox.assign($$('a[rel=boxed]'));

    });
    /* ]]> */

    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }
    //-->
    </script>

    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <link href="style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    .Stile3 {color: #E1E1E1; font-family: Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; }
    -->
    </style>
    </head>
    <body>
    <div align="center">
    <?php include("menu_ord.php"); ?>


    <table width="1000" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="F29400" background="immagini/sfondo_nero.png">
    <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td align="center">


    [img]mail/mailsend.png[/img]</p>


    [img]immagini/dist.jpg[/img]</p>
    </td>
    </tr>
    </table></td>
    </tr>
    </table>

    <?php include("menu_down.php"); ?></div>
    </body>
    </html>
    Cloud

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.