quiero que cada vez que escriba aqui con este script se sustitulla lo que escriba, para que no se ponga el texto bajo el otro, el script:
Verifica.php
Código PHP:
<?php
$fp = fopen("Noticia.html", "a");
fputs($fp, "<br><b><br><center>".$_POST['titulo']."</center><hr>");
fclose($fp);
echo "<b>La Noticia a sido Publicada.</b>";
?>
Código PHP:
<?php
if (($PHP_AUTH_USER!="") || ($PHP_AUTH_PW!="")){
header('WWW-Authenticate: Basic realm="Panel de Noticias"');
header('HTTP/1.0 401 Unauthorized');
echo 'Usuario o Password Incorrecta';
exit;
}
?>
<center>
<table width="200" height="210" border="0">
<tr>
<td> </td>
</tr>
</table>
<table width="404" height="158" border="1">
<tr>
<td height="115"><form action="verifica.php" method="post" id="formulario">
<center><table border="0">
<tr>
<td width="162"><b>Escribe la Noticia : </td><td width="151"><input name=titulo></td></tr>
</table>
<p> </p>
</center>
<p>
<center><input type="Submit" value="Mostrar Noticia" /></center>
</p>
</form></td>
</tr>
</table></center>
<p> </p>
Código PHP:
<?php
include("./Aviso.html");
?>
pero no se cual seria ese codigo.