4
Galley,
I have a PHP page and now I need to call another PHP page passing the parameters I collected from my BD.
How can I do that?
I’ve tried that, but it wasn’t!
$qry_str = "id=".$id_mensagem;
$ch = curl_init();
// Set query data here with the URL
curl_setopt($ch, CURLOPT_URL, '/postar_reenvio.php?' . $qry_str);
//$url = "http://www.google.com/search?q=".$strSearch."&hl=en&start=0&sa=N";
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 3);
$content = trim(curl_exec($ch));
print_r($content);
curl_close($ch);
That you’ve tried to do?
– user60252
$qry_str = "id=". $id_message; $ch = curl_init(); // Set query data here with the URL curl_setopt($ch, CURLOPT_URL, 'postar_resence.php? ' . $qry_str); //$url = "http://www.google.com/search?q=". $strSearch." &hl=en&start=0&sa=N";

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_TIMEOUT, 3);
$content = trim(curl_exec($ch));
print_r($content);
curl_close($ch);
– William
What error occurs?
– Guilherme Nascimento
have thought about using include 'postar_resenvio.php' and using the methods of the resend on the current page?
– Bsalvo
I can’t use include because this call will be on a loop
– William