Ver Mensaje Individual
  #5 (permalink)  
Antiguo 21/04/2011, 16:01
asierlodosa_94
 
Fecha de Ingreso: febrero-2011
Mensajes: 23
Antigüedad: 14 años
Puntos: 7
Respuesta: Insertar algunas modificaciones en codigo PHP

Me faltaba el codigo del principio del archivo del formulario:
Código PHP:
<?php

$file 
"guestbook";

$gInfo "";

$rFile = @fopen($file,"r");
    
$file_array = @file($file);
    for(
$i count($file_array); $i >= 0$i--){
        if(
strstr($file_array[$i], "%name%")){
            
$gInfo .= "<fieldset><legend><b>" preg_replace("/%name%/"""$file_array[$i]) . "</b>";
        }
        if(
strstr($file_array[$i], "%email%")){
            
$gInfo .= "<i>" preg_replace("/%email%/"""$file_array[$i]) . "</i></legend>";
        }
        if(
strstr($file_array[$i], "%comment%")){
            
$gComment preg_replace("/%comment%/"""$file_array[$i]);
            
$wrapComment wordwrap($gComment68"<br />"true);
            
$gInfo .=  $wrapComment "</fieldset><br>";
        }
    }
@
fclose($rFile);
?>