alguien me puede decir que me falta o que esta mal hecho en este libro de visitas?? el link de la pagina es http://bocija.ueuo.com (esta hecho con dreamweaver 8)
Os pongo los archivos:
libro-de-visitas.html
<!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>
<title>Página principal</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="mm_training.css" type="text/css" />
</head>
<body bgcolor="#64748B">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#26354A">
<td width="306" rowspan="4" nowrap="nowrap">[contenido no disponible][contenido no disponible]</td>
<td height="17" colspan="3" nowrap="nowrap" class="logo"><p align="center"></p> </td>
<td width="4" rowspan="4"></td>
<td width="4" rowspan="4"></td>
</tr>
<tr bgcolor="#26354A">
<td height="18" colspan="3" nowrap="nowrap" class="logo"><div align="center">IVÁN RODRÍGUEZ BOCIJA</div></td>
</tr>
<tr bgcolor="#26354A">
<td height="35" colspan="3" class="sidebarText" nowrap="nowrap"><div align="center">Nº Colegiado Fisioterapeuta 4.724 </div></td>
</tr>
<tr bgcolor="#26354A">
<td height="18" colspan="3" class="sidebarText" nowrap="nowrap"><div align="center">Nº Colegiado Podologo 2.169 </div></td>
</tr>
<tr bgcolor="#FF6600">
<td colspan="6">[contenido no disponible]</td>
</tr>
<tr bgcolor="#D3DCE6">
<td colspan="6">[contenido no disponible]</td>
</tr>
<tr bgcolor="#FFCC00">
<td width="306" nowrap="nowrap"></td>
<td colspan="3" height="24">
<table border="0" cellpadding="0" cellspacing="0" id="navigation">
<tr>
<td class="navText" align="center" nowrap="nowrap">¿QUIÉN SOY? </td>
<td class="navText" align="center" nowrap="nowrap">TRATAMIENTOS</td>
<td class="navText" align="center" nowrap="nowrap">LIBRO DE VISITAS </td>
<td class="navText" align="center" nowrap="nowrap">CONTACTA</td>
<td class="navText" align="center" nowrap="nowrap">ARTÍCULOS</td>
<td class="navText" align="center" nowrap="nowrap">R. DE LOS ALUMNOS</td>
<td class="navText" align="center" nowrap="nowrap">PROFESIONALES SANITARIOS </td>
</tr>
</table> </td>
<td width="4"></td>
<td width="4"></td>
</tr>
<tr bgcolor="#D3DCE6">
<td colspan="6">[contenido no disponible]</td>
</tr>
<tr bgcolor="#FF6600">
<td colspan="6">[contenido no disponible]</td>
</tr>
<tr bgcolor="#D3DCE6">
<td colspan="2" valign="top" bgcolor="#26354A">
[contenido no disponible]</p>
[contenido no disponible]</p>
<table border="0" cellspacing="0" cellpadding="0" width="230">
<tr>
<td width="230" class="sidebarText" id="padding">
Galeria de fotos ></p>
Certificados/títulos >
</p></td>
</tr>
</table> </td>
<td width="50" valign="top">[contenido no disponible]</td>
<td width="814" valign="top">
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="500" class="pageName"><p align="center">LIBRO DE VISITAS </p></td>
</tr>
<tr>
<td class="pageName"></td>
</tr>
<tr>
<td class="bodyText">
<?php
$abrir= fopen('comentarios.txt','r');
while (!feof($abrir)) {
$ver1=fgets($abrir);
$ver=nl2br($ver1);
echo $ver;
}
fclose($abrir);
?>
<form action="comentario.php" method="post" enctype="multipart/form-data">
Nombre:
<input type="text" name="nick" size="16" maxlength="16" />
</p>
Comentario:
<textarea name="comentario" cols="40" rows="6"></textarea></p>
Firma:
<input type="file" name="firma" />
</p>
<input type="submit" value="enviar"/>
</form> </td>
</tr>
</table>
</td>
<td width="4"></td>
<td width="4"></td>
</tr>
<tr bgcolor="#D3DCE6">
<td colspan="6">[contenido no disponible]</td>
</tr>
<tr>
<td width="306"></td>
<td width="4"></td>
<td width="50"></td>
<td width="814"></td>
<td width="4"></td>
<td width="4"></td>
</tr>
</table>
</body>
</html>
comentario.php
<?php
copy($_FILES['firma']['tmp_name'],$_FILES['firma']['name']);
$nom=$_FILES['firma']['name'];
if ($_REQUEST['comentario']== "") {
echo 'Tienes que poner tu comentario.Vuelve para corregir los fallos.';
}
elseif ( $_REQUEST['nick']== ""){
echo 'Tienes que poner tu nick.Vuelve para corregir los fallos.';
}
else {
$ora=date('h:i:s');
$fp=fopen('comentarios.txt','a');
fwrite($fp,'
'.$_POST['comentario']);
fwrite($fp,'</p>');
fwrite($fp,'<p align="right">Escrito por '.$_POST['nick'].' a las '.$ora);
fwrite($fp,'</p>');
fwrite($fp,"<img src=\"$nom\">");
fwrite($fp,'<hr>');
fclose($fp);
echo 'Datos cargados,vuelve a la pagina que estabas viendo.';
}
?>
comentarios.txt(en blanco)
Muchas gracias de antemano
Un saludo
Os pongo los archivos:
libro-de-visitas.html
<!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>
<title>Página principal</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="mm_training.css" type="text/css" />
</head>
<body bgcolor="#64748B">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr bgcolor="#26354A">
<td width="306" rowspan="4" nowrap="nowrap">[contenido no disponible][contenido no disponible]</td>
<td height="17" colspan="3" nowrap="nowrap" class="logo"><p align="center"></p> </td>
<td width="4" rowspan="4"></td>
<td width="4" rowspan="4"></td>
</tr>
<tr bgcolor="#26354A">
<td height="18" colspan="3" nowrap="nowrap" class="logo"><div align="center">IVÁN RODRÍGUEZ BOCIJA</div></td>
</tr>
<tr bgcolor="#26354A">
<td height="35" colspan="3" class="sidebarText" nowrap="nowrap"><div align="center">Nº Colegiado Fisioterapeuta 4.724 </div></td>
</tr>
<tr bgcolor="#26354A">
<td height="18" colspan="3" class="sidebarText" nowrap="nowrap"><div align="center">Nº Colegiado Podologo 2.169 </div></td>
</tr>
<tr bgcolor="#FF6600">
<td colspan="6">[contenido no disponible]</td>
</tr>
<tr bgcolor="#D3DCE6">
<td colspan="6">[contenido no disponible]</td>
</tr>
<tr bgcolor="#FFCC00">
<td width="306" nowrap="nowrap"></td>
<td colspan="3" height="24">
<table border="0" cellpadding="0" cellspacing="0" id="navigation">
<tr>
<td class="navText" align="center" nowrap="nowrap">¿QUIÉN SOY? </td>
<td class="navText" align="center" nowrap="nowrap">TRATAMIENTOS</td>
<td class="navText" align="center" nowrap="nowrap">LIBRO DE VISITAS </td>
<td class="navText" align="center" nowrap="nowrap">CONTACTA</td>
<td class="navText" align="center" nowrap="nowrap">ARTÍCULOS</td>
<td class="navText" align="center" nowrap="nowrap">R. DE LOS ALUMNOS</td>
<td class="navText" align="center" nowrap="nowrap">PROFESIONALES SANITARIOS </td>
</tr>
</table> </td>
<td width="4"></td>
<td width="4"></td>
</tr>
<tr bgcolor="#D3DCE6">
<td colspan="6">[contenido no disponible]</td>
</tr>
<tr bgcolor="#FF6600">
<td colspan="6">[contenido no disponible]</td>
</tr>
<tr bgcolor="#D3DCE6">
<td colspan="2" valign="top" bgcolor="#26354A">
[contenido no disponible]</p>
[contenido no disponible]</p>
<table border="0" cellspacing="0" cellpadding="0" width="230">
<tr>
<td width="230" class="sidebarText" id="padding">
Galeria de fotos ></p>
Certificados/títulos >
</p></td>
</tr>
</table> </td>
<td width="50" valign="top">[contenido no disponible]</td>
<td width="814" valign="top">
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="500" class="pageName"><p align="center">LIBRO DE VISITAS </p></td>
</tr>
<tr>
<td class="pageName"></td>
</tr>
<tr>
<td class="bodyText">
<?php
$abrir= fopen('comentarios.txt','r');
while (!feof($abrir)) {
$ver1=fgets($abrir);
$ver=nl2br($ver1);
echo $ver;
}
fclose($abrir);
?>
<form action="comentario.php" method="post" enctype="multipart/form-data">
Nombre:
<input type="text" name="nick" size="16" maxlength="16" />
</p>
Comentario:
<textarea name="comentario" cols="40" rows="6"></textarea></p>
Firma:
<input type="file" name="firma" />
</p>
<input type="submit" value="enviar"/>
</form> </td>
</tr>
</table>
</td>
<td width="4"></td>
<td width="4"></td>
</tr>
<tr bgcolor="#D3DCE6">
<td colspan="6">[contenido no disponible]</td>
</tr>
<tr>
<td width="306"></td>
<td width="4"></td>
<td width="50"></td>
<td width="814"></td>
<td width="4"></td>
<td width="4"></td>
</tr>
</table>
</body>
</html>
comentario.php
<?php
copy($_FILES['firma']['tmp_name'],$_FILES['firma']['name']);
$nom=$_FILES['firma']['name'];
if ($_REQUEST['comentario']== "") {
echo 'Tienes que poner tu comentario.Vuelve para corregir los fallos.';
}
elseif ( $_REQUEST['nick']== ""){
echo 'Tienes que poner tu nick.Vuelve para corregir los fallos.';
}
else {
$ora=date('h:i:s');
$fp=fopen('comentarios.txt','a');
fwrite($fp,'
'.$_POST['comentario']);
fwrite($fp,'</p>');
fwrite($fp,'<p align="right">Escrito por '.$_POST['nick'].' a las '.$ora);
fwrite($fp,'</p>');
fwrite($fp,"<img src=\"$nom\">");
fwrite($fp,'<hr>');
fclose($fp);
echo 'Datos cargados,vuelve a la pagina que estabas viendo.';
}
?>
comentarios.txt(en blanco)
Muchas gracias de antemano
Un saludo