Ver Mensaje Individual
  #5 (permalink)  
Antiguo 22/02/2012, 10:48
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 intentado con curl pero no me funciona o no me envia, podrias darme un ejemplo de como se haria
te envio uno de los tantos codigos con los que he probado
Cita:
function use_curl($href, $post=null){
$handle=curl_init();
curl_setopt($handle, CURLOPT_URL, $href);
if($post){
if($post){
curl_setopt($handle, CURLOPT_POST, 1);
curl_setopt($handle, CURLOPT_POSTFIELDS, $post);
}
curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($handle, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($handle, CURLOPT_TIMEOUT, 90);
}
$result=curl_exec($handle);
curl_close($handle);
return $result;
}

$campo="valor";
if(use_curl)("http://www.web2.com", $campo);