![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
09/10/2008, 13:07
|
|
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...... |