Menu
Hi,
How do you send a form (where variables are already given) using php without using HTML or Javascript? Right now I use:
[CODE] $ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $action);
curl_setopt($ch, CURLOPT_POST, 1 );
curl_setopt ($ch, CURLOPT_TIMEOUT, 20); // Default Timeout
curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_exec ($ch);
curl_close ($ch);
header(‘Location:’ . $action);
But unfortunately not every server supports curl……