Ver Mensaje Individual
  #5 (permalink)  
Antiguo 21/04/2006, 18:08
speedygonzales77
 
Fecha de Ingreso: abril-2006
Mensajes: 7
Antigüedad: 18 años
Puntos: 0
<html>
<head>
<title>origen.html</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">

<form name="form1" method="post" action="destino.php">
<input type="text" name="textfield1">
<input type="text" name="textfield2">
<input type="text" name="textfield3">
<input type=submit name=submit>
</form>

</body>
</html>

y la página destino.php contiene este código:


<?php
session_start();

$textfield1 = $_POST['$textfield1'];
$textfield2 = $_POST['$textfield2'];
$textfield3 = $_POST['$textfield3'];


$_SESSION['$textfield1'] = "$textfield1";
$_SESSION['$textfield2'] = "$textfield2";
$_SESSION['$textfield3'] = "$textfield3";
?>


<html>
<head>
<title>destino.php</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">


<?
echo "<form>";
echo "<select name=name>";
echo "<option menu=\"{$textfield1}\">$textfield1";
echo "<option menu=\"{$textfield2}\">$textfield2";
echo "<option menu=\"{$textfield3}\">$textfield3";
echo "</select>";
echo "</form>";

?>


</body>
</html>