Ver Mensaje Individual
  #12 (permalink)  
Antiguo 17/06/2002, 11:29
^_CloViS_^
 
Fecha de Ingreso: mayo-2002
Mensajes: 115
Antigüedad: 21 años, 11 meses
Puntos: 0
Re: sistema de noticias

Hola de nuevo, me he vuelto a atascar he hecho lo siguiente: pagina con formulario (codigo de fuente):
<html>

<head>
<title>Titulo</title>
</head>

<body>
<form method="POST" action="recoger.php">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="800" id="AutoNumber1">
<tr>
<td width="50%" height="19">Titulo:</td>
<td width="50%" height="19">
<input type="text" name="titulo" size="20">
</td>
</tr>
<tr>
<td width="50%" height="18">Contenido:</td>
<td width="50%" height="18"><textarea rows="2" name="contenido" cols="30"></textarea></td>
</tr>
<tr>
<td width="50%" height="19">Autor:</td>
<td width="50%" height="19"><input type="text" name="autor" size="20"></td>
</tr>
<tr>
<td width="100%" height="19" colspan="2">
<p align="center"><input type="submit" value="Enviar" name="enviar"><input type="reset" value="Restablecer" name="reset"></td>
</tr>
</table>
</form>
</body>

</html>
Pagina que recoja los datos (codigo de fuente):
<?
include("noticias.txt")
$registro = "$titulo|$contenido|$autor\n";
$abrir = fopen("noticias.txt");
$guardar = fwrite($abrir, $formato);
$cerrar = fclose($abrir);

echo "La noticia ha sido enviada correctamente,\n"
echo "Volver al inicio"
?>
Y es aquí donde me he vuelto a quedar, puesto que me sale siempre: Parse error: Parse error: parse error in recoger.php on line 3 o Parse error: parse error in recoger.php on line 8 , y no se que es lo que tengo mal (aunque supongo que todo).