![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
04/07/2007, 10:58
|
![Avatar de rimobi](http://static.forosdelweb.com/customavatars/avatar188131_1.gif) | | | Fecha de Ingreso: julio-2007
Mensajes: 84
Antigüedad: 17 años, 7 meses Puntos: 1 | |
Re: Guardar Variables en PHP tengo este codigo pero no se me graban las Variables que escribo en la web sino solo las fijas k estan escritar.. en PHP
codigo
<style type="text/css">
<!--
.style1 {color: #FF0000}
-->
</style>
<form method="get" name="formulario" action="d.php">
<p>tu nombre
<input type="text" name="Nombre" value="<?=$_POST['Nombre'];?>">
tu web
<input type="text" name="edad" value="<?=$_POST['web'];?>">
</p>
<p>
<input type="submit" name="guardar" value="Guardar" onclick="Validar
(this.value);">
<input type="hidden" name="Boton">
</p>
</form>
<?
$datos = $_POST['Nombre'];
$datos .= ' | '.$_POST['web'];
$fh = fopen("doc.txt", "w");
fwrite($fh, " $datos ");
fclose($fh);
?> |