Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/11/2007, 09:39
Avatar de Seppo
Seppo
 
Fecha de Ingreso: marzo-2005
Ubicación: Buenos Aires, Argentina
Mensajes: 1.284
Antigüedad: 19 años, 1 mes
Puntos: 17
Re: cual es el problema en este codigo?

Código PHP:
<?php
$pvm 
getdate();
$archivo="libro.txt"#aquí para cambiar la ruta del archivo donde se guardan las entradas
$uusi="<table border=0 width=95% cellspacing=1><tr><td width=30%><b>nombre :</b></td><td width=70%> " $_POST['nombre'] . "</td></tr>

<tr><td width=30%><b>Fecha : </b></td>

<td width=70%>$pvm[mday]-$pvm[mon]-$pvm[year]</td></tr><tr><td width=30%>

<b>E-mail :</b>

</td>

<td width=70%><a href='mailto:" 
$_POST['email'] . "'><font color='000000'>" $_POST['email'] . "</font></a>

</td>

</tr><tr>

<td width=30%><b>Web :</b></td><td width=70%><a href='http://" 
$_POST['weburl'] . "' target='_blank'>

<font color='000000'>" 
$_POST['nombreweb'] . "</font></a></td></tr>

</td>

</table>

<hr width=70%>\n\n"
;
$fp=fopen($archivo"r+");
$vanha=fread($fpfilesize($archivo));
fseek($fp0);
fwrite($fp"${uusi}${vanha}");
fclose($fp);

print 
"<b>Gracias por firmar !!</b><br>";
print 
"<a href=libro.php>Regresar</a>";
?>