Ver Mensaje Individual
  #14 (permalink)  
Antiguo 09/10/2008, 13:07
overon37
Invitado
 
Mensajes: n/a
Puntos:
Respuesta: paso de variables

el ejemplo con variables de sesion que tengo es asi

formulario con php

<html>
<head>
<title>Ejemplo 2</title>
</head>
<body>
<form name="mio" action="2.php" method="post">
Nombre:
<input type="text" name="txt1" id="txt1">
Resultado:
<input type="text" name="txt2" id="txt2" value="<? echo $_SESSION['variable']; ?>">
<input type="submit" name="btn1" id="btn1" value="enviar">
</form>
</body>
</html>


y el otro fichero tiene

<?php
session_start();
$_SESSION['variable']="procesado";
header("location: 1.php");
exit();
?>


esto no funciona......