Ciao! Ale!?!?....GRZ! x la risposta...oggi sono libero e mi dedico a questo combattimeentoo!!
ho cambiato il form...quindi ricomincio dinuovo!!....ho già modificato con le informazioni acquisite finora da voi esperti
http://www.hotellutetia.altervista.o...inviodati.html
Codice HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<input>
<title>forminviodati</title>
</head>
<body style="background-color: white; color: rgb(0, 0, 0);"
alink="#ee0000" link="#0000ee" vlink="#551a8b">
<br>
<div align="center">
<center><span style="color: yellow;"><span
style="font-weight: bold;"><big><big><big><small><span
style="color: rgb(28, 30, 255);"><big>Hotel
Lutètia</big> <img
style="width: 15px; height: 15px;" alt=""
src="star_on_sm_2.gif"><img
style="width: 15px; height: 15px;" alt=""
src="star_on_sm_2.gif"></span></small></big></big></big></span></span><small
style="font-weight: bold;"><span style="color: black;"></span></small><small
style="font-weight: bold;"><span style="color: black;"></span></small>
<br>
<small style="font-weight: bold; font-family: Georgia;"><span
style="color: black;"><small> 19,
avenue de la
Gare - 65100 LOURDES <br>
</small></span></small><small
style="font-weight: bold; font-family: Georgia;"><span
style="color: black;"></span></small><span
style="color: yellow;"><small><small
style="font-weight: bold; font-family: Georgia;"><span
style="color: black;">Tel</span><span
style="color: black;">.
05 62 94 22 85 </span><span
style="color: black;">Fax</span></small><span
style="color: red; font-weight: bold;"><span
style="color: black;"><small><span
style="font-family: Georgia;">
05 62 94 11 10 <br>
<br>
</span></small></span></span></small></span>
<div align="center">
<table
style="border-collapse: collapse; background-color: rgb(7, 85, 238); width: 600px; height: 725px; text-align: left; margin-left: auto; margin-right: auto;"
border="1" bordercolor="#0755ee" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<td
style="height: 75px; width: 120px; text-align: center; vertical-align: middle; color: white;"
bordercolor="#993300">
<p align="center"><i><font
style="color: white;" face="Arial" size="2">nome
e</font><font style="color: white;" face="Arial"
size="2"> </font><font face="Arial" size="2">
cognome
(obbligatorio)</font></i></p>
</td>
<td
style="width: 420px; text-align: center; vertical-align: middle; height: 75px;"
bordercolor="#993300">
<p align="center"><font color="#993300"
face="Arial" size="3"><input
style="border-style: solid; border-color: rgb(153, 51, 0);"
name="nome" size="35"></font></p>
</td>
</tr>
<tr>
<td
style="height: 75px; width: 120px; text-align: center; vertical-align: top; color: white;"
bordercolor="#993300">
<i><font face="Arial" size="2">email
a cui si vuole risposta (obbligatorio)</font></i></td>
<td bordercolor="#993300"
style="height: 75px; text-align: center; vertical-align: top; background-color: rgb(7, 85, 238); width: 480px;">
<p style="background-color: transparent;" align="center"><font
color="#993300" face="Arial" size="3"><input
name="email" size="35"
style="border-style: solid; border-color: rgb(153, 51, 0);"></font></p>
</td>
</tr>
<tr>
<td
style="width: 120px; color: white; text-align: center; height: 55px; background-color: rgb(7, 85, 238); vertical-align: middle;">
<font face="Arial" size="2">telefono</font></td>
<td
style="width: 480px; height: 55px; background-color: rgb(7, 85, 238); text-align: center; vertical-align: top;">
<p style="background-color: transparent;" align="center"><font
color="#993300" face="Arial" size="3"><input
name="telefono" size="20"
style="border-style: solid; border-color: rgb(153, 51, 0);"
type="text"></font></p>
</td>
</tr>
<tr>
<td
style="color: white; width: 120px; text-align: center; height: 55px; background-color: rgb(7, 85, 238); vertical-align: middle;"><small><span
style="font-family: Verdana;">numero
persone</span></small></td>
<td
style="width: 480px; text-align: center; vertical-align: top; background-color: rgb(7, 85, 238); height: 55px;">
<p align="center"><font color="#993300"
face="Arial" size="3"><input
style="border-style: solid; border-color: rgb(153, 51, 0);"
name="persone" size="3"></font></p>
</td>
</tr>
<tr>
<td
style="color: white; background-color: rgb(7, 85, 238); height: 55px; width: 120px; text-align: center; vertical-align: top;"><small><span
style="font-family: Verdana;">numero
camere</span></small></td>
<td
style="background-color: rgb(7, 85, 238); height: 55px; width: 480px; text-align: center; vertical-align: top;">
<p align="center"><font color="#993300"
face="Arial" size="3"><input
style="border-style: solid; border-color: rgb(153, 51, 0);"
name="camere" size="3"></font></p>
</td>
</tr>
<tr>
<td
style="height: 350px; width: 120px; text-align: center; color: white; background-color: rgb(7, 85, 238); vertical-align: top;">
<small style="font-family: Verdana;">informazioni o
prenotazione</small></td>
<td
style="height: 350px; background-color: rgb(7, 85, 238); width: 480px; text-align: center; vertical-align: middle;">
<p style="background-color: transparent;" align="center"><textarea
rows="17" name="messaggio" cols="36"
style="border-style: solid; border-color: rgb(153, 51, 0);"></textarea></p>
</td>
</tr>
</tbody>
</table>
</div>
<br>
<p align="center"><input type="submit"><input
type="reset"></p>
<p align="center">
<?php $nome = $_POST['nome'];
$email = $_POST['email'];
$telefono = $_POST['telefono'];
$messaggio = $_POST['messaggio'];
$persone = $_POST['persone'];
$camere = $_POST['camere'];
if(!empty($_POST['email']) and !empty($_POST['telefono']) and !empty($_POST['nome']) and !empty($_POST['messaggio']) and !empty($_POST['camere']) and !empty($_POST['persone'])
else
die("Tutti i campi sono obbligatori!");
mail("hotellutetia@altervista.org" , "Segnalazione dal sito" , "Nome: $nome, Email: $email, Messaggio: $messaggio, Telefono: $telefono, Camere: $camere, persone: $persone", "From: hotellutetia@altervista.org\n");
?><br>
</p>
<hr></center>
</div>
</body>
Codice PHP:
$nome = $_POST['nome'];
$email = $_POST['email'];
$telefono = $_POST['telefono'];
$messaggio = $_POST['messaggio'];
$persone = $_POST['persone'];
$camere = $_POST['camere'];
if(!empty($_POST['email']) and !empty($_POST['telefono']) and !empty($_POST['nome']) and !empty($_POST['messaggio']) and !empty($_POST['camere']) and !empty($_POST['persone'])
else
die("Tutti i campi sono obbligatori!");
mail("hotellutetia@altervista.org" , "Segnalazione dal sito" , "Nome: $nome, Email: $email, Messaggio: $messaggio, Telefono: $telefono, Camere: $camere, persone: $persone", "From: hotellutetia@altervista.org\n");
questi sono codice HTML e PHP.....su questo modulo...ho provato a compilare e inviare e non succede nulla...rimane la stessa finestra...la PAGINA HA ESTENSIONE "HTML"