Allora, io non ci capisco piu molto:
1- Mi sono scaricato easyphp, funziona testato.
2- Poi ho preso il file php dove ho il form e l'ho rinominato index.php perche' easy php lo trovasse in locale
Qui di seguito il codice attuale:
<HTML>
<HEAD>
<TITLE>Voucher fatto</TITLE>
</HEAD>
<BODY>
<?
$file=fopen("voucher.html","a+");
fwrite($file, "<html>
<head>
<title></title
</head>
<body>
<table id="frame" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<TD id="header" valign="top" align="right">
<p><h4>Portal To Your Wishes</h4></p>
</div></td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<TD id="leftcol" valign="top" align="left">
<h1></h1>
<p><img src="../HTML_EMAIL/finestra.png"></p>
</div></td><td> </td>
<TD id="content" valign="top" align="left">
<h2><i>Booking Voucher</i></h2>
<p><div align="justify">
Reservation Date: $reservation = $_POST['reservation'];
<br><br>Client Name: $name = $_POST['name'];
<br><br>Client Email:$email = $_POST['email'];
<br><br>Client Country: $country = $_POST['country'];
<br><br>Adults: $adults = $_POST['adults'];
<br><br>Children: $children = $_POST['children'];
<br><br>Nights Total: $nights = $_POST['nights'];
<br><br>Structure: $structure = $_POST['structure'];
<br><br>Arrival Date: $checkin = $_POST['checkin'];
<br><br>Time of Arrival: between 4 p.m. and 8,00 p.m.
<br><br>Departure Date: $checkout = $_POST['checkout'];
<br><br>Time of Departure: Not later than 10 a.m.
</div></p>
</div></td>
<TD id="rightcol" valign="top" align="left">
</div></td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<TD id="footer" align="center" valign="middle">
<p></p>
</div></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>");
include("voucher.html");
?>
</BODY>
</HTML>
3- Poi ho creato un altro file php chiamato submit_custom.php il cui codice posto di seguito
<HTML>
<HEAD>
<TITLE>Voucher fatto</TITLE>
</HEAD>
<BODY>
<?
$file=fopen("voucher.html","a+");
fwrite($file, "<html>
<head>
<title></title
</head>
<body>
<table id="frame" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<TD id="header" valign="top" align="right">
<p><h4>Portal To Your Wishes</h4></p>
</div></td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<TD id="leftcol" valign="top" align="left">
<h1></h1>
<p><img src="../HTML_EMAIL/finestra.png"></p>
</div></td><td> </td>
<TD id="content" valign="top" align="left">
<h2><i>Booking Voucher</i></h2>
<p><div align="justify">
Reservation Date: $reservation = $_POST['reservation'];
<br><br>Client Name: $name = $_POST['name'];
<br><br>Client Email:$email = $_POST['email'];
<br><br>Client Country: $country = $_POST['country'];
<br><br>Adults: $adults = $_POST['adults'];
<br><br>Children: $children = $_POST['children'];
<br><br>Nights Total: $nights = $_POST['nights'];
<br><br>Structure: $structure = $_POST['structure'];
<br><br>Arrival Date: $checkin = $_POST['checkin'];
<br><br>Time of Arrival: between 4 p.m. and 8,00 p.m.
<br><br>Departure Date: $checkout = $_POST['checkout'];
<br><br>Time of Departure: Not later than 10 a.m.
</div></p>
</div></td>
<TD id="rightcol" valign="top" align="left">
</div></td>
</tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<TD id="footer" align="center" valign="middle">
<p></p>
</div></td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>");
include("voucher.html");
?>
</BODY>
</HTML>
Come vedrete qui c'ho messo l' HTML dove probid mi aveva detto, che pero' non funziona come l'ho messo io. Quando lo testo il form cerca di aprire il file submit_custom.php ma mi da questo errore di codice:
"Parse error: parse error in c:\program files\easyphp1-8\www\submit_custom.php on line 20"
Dove sbaglio? Lo metto bene l'html? Ed i vari campi?
Scusate ma mi sento in alto mare e non so dove andare. Grazie ancora dell'aiuto.
PS: probid mi faresti un esempio su come mettere l'html? Sono un po impedito...