Ver Mensaje Individual
  #8 (permalink)  
Antiguo 22/02/2012, 11:06
jeshua3001
 
Fecha de Ingreso: octubre-2006
Mensajes: 128
Antigüedad: 17 años, 5 meses
Puntos: 0
Respuesta: Enviar variables body onLoad y redireccionar header("Location:")

he probado con file_get_contents
Cita:
$url = 'http://www.example.com/submit.php';
$body = 'FDW=programacion&PHP=f18';
$options = array('method' => 'POST', 'content' => $body);
$context = stream_context_create(array('http' => $options));
$page = file_get_contents($url, false, $context);
echo $page;
el problema es que sirve solo si se imprime en la pagina que envia (web1) la pagina que recibe las variables www.example.com/submit.php o (web2) y no lo reenvia. y si le elimino el
Cita:
echo $page;[/
no funciona.

pato_cuack una pregunta el parent.location.href= lo soporta todos los navegadores?