Ver Mensaje Individual
  #10 (permalink)  
Antiguo 29/07/2008, 18:46
franco190453
 
Fecha de Ingreso: abril-2006
Mensajes: 1.128
Antigüedad: 18 años, 1 mes
Puntos: 33
Respuesta: problema con variable echa desde formulario html

knzo25:
Sin necesidad de utilizar sesiones puedes hacer lo siguiente ->

votos.html
<form action="votos.php" method="POST">
Su Cuenta: <input type="text" name="nombre" />
<input type="submit">
</form>

votos.php
$cuenta= $_POST["nombre"];
echo $cuenta;
echo "<form action=\"votos2.php\" method=\"POST\">
Su Cuenta: <input type=\"text\" name=\"nombre\" value=\"$cuenta\" />
<input type=\"submit\">
</form>";

votos2.php
$cuenta= $_POST["nombre"];
echo $cuenta;

Saludos
Y espero te ayude
Franco
P.S. Pruebalo!!!