buenas tardes,estoy haciendo un sistema de comentarios sin base de datos,sin pedir registro.
el cual tengo el problema siguiente:cuando escriben los mensajes se queda tan que asi:
el cual queda muy feo todo junto.
os dejo el codigo por si me pueden hechar una mano,codigo html:
Editado
el cual tengo el problema siguiente:cuando escriben los mensajes se queda tan que asi:

el cual queda muy feo todo junto.
os dejo el codigo por si me pueden hechar una mano,codigo 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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Documento sin título</title><style> </style> </head> <body> <div class="comentario"> <form method="post" action="comentar.php"> <H3 align="center">Comentarios <a href="http://creaticode.com">dancelomania.tk</a></H3> <div class="comment-head"> <div align="center"> <input type="text" name="nam" placeholder="Su nombre" size="20" maxlength="15" /> <br /> <div class=""><input type="text" name="comentario" placeholder="Escribe un comentario..." size="28" maxlength="250"/><br /></div> <input type="submit" value="Comentar"> </div> </form> </form> <br> <b>COMENTARIOS DE LOS VISITANTES </b> <div> <?php include(com.html); ?> </div> </body> </html>y el comentar php:
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Documento sin título</title><style>
.estilo{
background:#999;}
</style>
</head>
<body>
<b>COMENTARIOS DE LOS VISITANTES </b>
<div class="estilo">
<?
$filename = 'com.html';
if (file_exists($filename)) {
include("com.html");
} else {
echo "No hay comentarios";
};
?>
</div>
</body>
</html>un saludo y muchas gracias por su ayuda.Editado
0
Puntos
Puntos
1127
Visitas
Visitas
0
Resp
Resp
Por santi hace 9 años
Novice