Mi è stato sistemato il file php del mio formmail in questo modo:
Però quando vado a verificarlo, mi viene segnalato:Codice:<?php $destinatario = "xxxxxxxxx@xxxx.it"; // Indirizzo a cui spedire la mail $oggetto = "PBA"; // Oggetto Mail $mail = $_POST['E-mail']; $richiesta = $_POST['Richiesta']; $nome = $_POST['Nome']; $cognome = $_POST['Cognome']; $commissione = $_POST['Commissione']; $msg = "NOME: $nome \n\nCOGNOME: $cognome \n\nCOMMISSIONE: $commissione \n\nRICHIESTA: $richiesta"; // Messaggio if(empty($nome) || empty($cognome) || empty($richiesta) || empty($mail)){ <form id="Informazioni" name="Informazioni" method="post" action="<?php echo basename($PHP_SELF); ?>"> <p> <label><span class="Titolo">*Nome</span><span class="Titolo"><br /> </span> <input name="Nome" type="text" id="Nome" size="50" /> </label> </p> <p> <label><span class="Titolo">*Cognome</span><br /> <input name="Cognome" type="text" id="Cognome" size="50" /> </label> </p> <p> <label><span class="Titolo">*E-mail</span><br /> <input name="E-mail" type="text" id="E-mail" size="50" /> </label> </p> <table width="100%"> <tr> <td width="100%" align="left" class="Titolo">SONO INTERESSATO A COMMISSIONARE</td> </tr> <tr> <td><label> <input type="radio" name="Commissione" value="COMMISSIONE_0" /> <span class="Testo"> UN RITRATTO</span></label></td> </tr> <tr> <td><label> <input type="radio" name="Commissione" value="COMMISSIONE_1" /> <span class="Testo"> UNA NATURA MORTA</span></label></td> </tr> <tr> <td><label> <input type="radio" name="Commissione" value="COMMISSIONE_2" /> <span class="Testo">UN PAESAGGIO</span></label></td> </tr> <tr> <td><label> <input type="radio" name="Commissione" value="COMMISSIONE_3" /> <span class="Testo">ALTRO</span></label></td> </tr> </table> <p> <label><span class="Titolo">*Richiesta <br /> <textarea name="Richiesta" cols="100" rows="5" id="Richiesta">(Indicare il titolo dellopera di cui si desiderano maggiori informazioni).</textarea> <br /> </span><span class="note"> *I campi con asterisco sono obbligatori.</span><span class="Titolo"> <br /> </span></label> </p> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr align="center" valign="middle"> <td><input type="submit" name="INVIA" id="INVIA" value="Invia" /></td> </tr> </table> <p> </p> </form> <?php }else{ mail($destinatario,$oggetto,$msg,"From: $mail"); echo "MAIL INVIATA!!!"; // MSG MAIL INVIATA } ?>
Potreste aiutarmi?Codice:Parse error: syntax error, unexpected '<' sulla seguente linea: <form id="Informazioni" name="Informazioni" method="post" action="<?php echo basename($PHP_SELF); ?>">

LinkBack URL
About LinkBacks

