mi da errore di sintassi e non capisco perchè.. qualcuno sa come mai?
Codice PHP:
<html>
<head>
</head>
<body>
<table border="0" width="100%">
<tr>
<td colspan="3" align="center" width="100%" cellpadding="0" cellspacing="0">Mate</td>
</tr>
<tr>
<td width="20%" cellpadding="0" cellspacing="0">
<form name="file1" method="post" action="index.php">
<input type="hidden" name="act" value="1" />
<a href="index.php" >apri PDF</a>
</form>
</td>
<td width="60%" cellpadding="0" cellspacing="0">
<?php
if($_POST){
$var=$_POST["act"];
if($var==1) {include("File_1.pdf");}
else {echo "errore";}
}
else {echo "errore!";}
?>
</td>
<td width="20%" cellpadding="0" cellspacing="0">
ciao
</td>
</tr>
</table>
</body>
</html>
Codice:
Parse error: syntax error, unexpected $end in C:\Program Files\EasyPHP-5.3.3\www\gio\index.php on line 32