Ver Mensaje Individual
  #16 (permalink)  
Antiguo 09/09/2003, 03:42
Avatar de davidMS
davidMS
 
Fecha de Ingreso: abril-2003
Ubicación: Chepe
Mensajes: 202
Antigüedad: 21 años
Puntos: 0
Tomando en cuenta lo que an dicho los compañeros yo lo haria asi (talvez te ayude de algo):
Código PHP:
<?
if (! isset ($load))
{
    
$load="parte1";
}
switch (
$load)
{
    case (
"parte1"):
        echo
'
        <html>
        <head>
        <title>Untitled Document</title>
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
        </head>
        
        <body>
        <form name="form1" method="post" action="action.php?load=parte2">
          <p> Que te gusta mas? 
            <label> </label>
          </p>
          <p>
            <label>
            <input type="radio" name="opcion" value="http://www.google.com">
            Google</label>
            <br>
            <label> 
            <input type="radio" name="opcion" value="http://www.yahoo.com">
            Yahoo</label>
          </p>
          <p>
            <input type="submit" name="Submit" value="Submit">
            <br>
          </p>
        </form>
        </body>
        </html>
        '
;
    break;
    case (
"parte2"):
        
header ("location: ".$_POST["opcion"]);
    break;
}
?>
si quieres nada mas cambias header por include quedando asi:
Código PHP:
include ($_POST["opcion"]); 
tomando en cuenta que con header, te podes ir a un html cualquier y le podes pasar variables url, con include no...