Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/05/2010, 09:35
Avatar de Most
Most
 
Fecha de Ingreso: marzo-2009
Mensajes: 642
Antigüedad: 15 años, 1 mes
Puntos: 6
poner texto y suscribir...

Buenas, aver como puedo hacer lo siguiente:

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>";

?>
Panel.php
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>&nbsp;</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>&nbsp;</p>
    </center>
    <p>
     <center><input type="Submit" value="Mostrar Noticia" /></center>
    </p>
    </form></td>
  </tr>
</table></center>
<p>&nbsp;</p>
index.php
Código PHP:
<?php
include("./Aviso.html");
?>
osea seria poner el codigo para que cuando lo ponga, antes de escribirse borrase en archivo Aviso.html y creara otro...

pero no se cual seria ese codigo.