Visualizzazione dei risultati da 1 a 2 su 2

Discussione: contatti, non spedisce

  1. #1
    Utente di HTML.it L'avatar di ice_boy
    Registrato dal
    Nov 2004
    Messaggi
    290

    contatti, non spedisce

    Salve ragazzi, potete aiutarmi? ho un modulo di contatti, che non mi invia i dati all'email è formato da 3 file php che sono :

    configem.php
    <?
    $email = "ice@xxx.it";
    $subject = "soggetto";
    ?>


    form.php
    <!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">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Documento senza titolo</title>
    <style type="text/css">
    <!--
    #Layer1 { position:absolute;
    width:178px;
    height:70px;
    z-index:3;
    left: 107px;
    top: -72px;
    }
    .Stile2 {font-size: 1px}
    body {
    background-color: #F9F7EB;
    }
    #Layer2 {
    position:absolute;
    width:39px;
    height:11px;
    z-index:3;
    left: 330px;
    top: 5px;
    }
    .Stile3 {
    font-size: 18px;
    color: #A11206;
    font-family: verdana;
    }
    #Layer3 {
    position:absolute;
    width:200px;
    height:115px;
    z-index:4;
    left: 33px;
    top: 62px;
    }
    .Stile4 {
    font-size: #A11206;
    color: #A11206;
    }
    .Stile6 {color: #A11206}
    #Layer4 {
    position:absolute;
    width:200px;
    height:32px;
    z-index:4;
    left: 3px;
    top: 3px;
    }
    -->
    </style>
    </head>

    <body>
    <div id="Layer27" style="position:absolute; width:752px; height:540px; z-index:2; left: 0px; top: 0px;">
    <table width="788" height="500" border="1" align="right" cellpadding="0" cellspacing="0" bordercolor="#800000" id="AutoNumber30" style="border-collapse: collapse">
    <tr bordercolor="#800000">
    <td height="471" bordercolor="#800000"><form action="sendmail.php" method=POST>
    <table width=99%>
    <tr>
    <td width="36%" align=right><div align="right"><span class="Stile6">Nome:</span></div></td>
    <td width="64%" align=left><input type=text name=f_name size=33></td></tr>
    <tr>
    <td align=right><div align="right"><span class="Stile2"><span class="Stile6">...</span></span><span class="Stile6">Cognome:</span></div></td>
    <td align=left><input name=f_cogn type=text id="f_cogn" size=33></td></tr>
    <tr>
    <td height="21" align=right><span class="Stile2"><span class="Stile6">...</span></span><span class="Stile6">Nome Azienda:</span></td>
    <td align=left><input name="f_azienda" type="text" id="f_azienda" size="33" /></td></tr>
    <tr>
    <td height="21" align=right><span class="Stile6">Email:</span></td>
    <td align=left><input name="f_mail" type="text" id="f_mail" size="33" /></td>
    </tr>
    <tr>
    <td height="24" align=right><div align="right"><span class="Stile6">Oggetto:</span></div></td>
    <td align=left><input name="f_oggetto" type="text" id="f_oggetto" size="33" /></td>
    </tr>
    <tr>
    <td height="85" align=right><div align="center"><span class="Stile2">................................... .................................................. .................................................. ..............................................<spa n class="Stile6">......</span></span><span class="Stile6">Messagio:</span> </div></td>
    <td align=left><textarea cols=30 rows=5 name=f_message></textarea></td>
    </tr>
    </table>


    <div align="center">
    <table width="224" border="0">
    <tr>
    <td width="95"><input name="submit2" type=submit class="Stile4" value="Invia" /></td>
    <td width="119"><input name="submit" type="reset" class="Stile4" value="Cancella tutto" /></td>
    </tr>
    </table>
    <span class="Stile2">.</span></div>
    <div></div>
    </form> </td>
    </tr>
    </table>
    </div>
    </body>
    </html>


    sendmail.php
    <?
    include "configem.php";
    if ($f_name <> "" and $f_mail <> "" and $f_message <> "" and $f_cogn <> ""and $f_oggetto <> "") {
    mail("$email", "$subject", "From: $f_name\nMail: $f_cogn\nCognome: $f_azienda\nAzienda: $f_mail\nMessage: $f_oggetto\nOggetto:\n\n$f_message");
    $msg = "Il tuo messagio è stato spedito, grazie per averci contattato.";
    } else {
    $msg = "Tutti i campi sono obblicatori, clicca su torna indietro per compilare tutti i campi.";
    }
    ?><style type="text/css">
    <!--
    body {
    background-color: #F9F7EB;
    }
    a:link {
    color: #800000;
    }
    a:visited {
    color: #800000;
    }
    .Stile1 {color: #800000}
    -->
    </style>
    <p align="center"><? echo $msg; ?></p>


    </p>


    </p>


    </p>
    <p align="center">Torna indietro </p>

  2. #2
    Utente di HTML.it L'avatar di ice_boy
    Registrato dal
    Nov 2004
    Messaggi
    290
    problema risolto

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.