Ver Mensaje Individual
  #2 (permalink)  
Antiguo 20/01/2012, 05:49
jqcod
 
Fecha de Ingreso: septiembre-2011
Mensajes: 73
Antigüedad: 12 años, 7 meses
Puntos: 0
Respuesta: form action apuntando fuerra www

dejo el código por si puede ser mas claro:

index.php--------- esta en www
Código HTML:
<html>
    <head></head><body>
         <form action="../procesa.php" method="post">
            <input type="text" name="test"/>
            <input type="submit" value="Procesar"/>
        </form>
    </body>
</html> 
procesa.php------ este esta en directorio anterior a www
Código PHP:
<?php
session_start
();
$var "El dato enviado es: ".$_POST['test'];
$_SESSION['retorno']=$var;
header('Location: /resultado.php');
exit;
?>
resultado.php ------ esta en www
Código PHP:
<?php
session_start
();
echo 
$_SESSION['retorno'];
?>
gracias