PHP's cURL URL is being automatically entered in the browser's address bar -
i have code :
private function sendtoinfusionsoft($xid, $form_name, $firstname, $lastname, $email) { $url = "https://company-name.infusionsoft.com/app/form/process/{$xid}"; $params = [ 'inf_form_xid'=>$xid, 'inf_form_name'=>$form_name, 'infusionsoft_version'=>'1.62.0.45', 'inf_field_firstname'=>$firstname, 'inf_field_lastname'=>$lastname, 'inf_field_email'=>$email ]; $params = http_build_query($params); $ch = curl_init(); curl_setopt($ch, curlopt_url, $url); curl_setopt($ch, curlopt_header, false); curl_setopt($ch, curlopt_post, true); curl_setopt($ch, curlopt_ssl_verifyhost, false); curl_setopt($ch, curlopt_ssl_verifypeer, false); curl_setopt($ch, curlopt_postfields, $params); curl_exec($ch); curl_close($ch); }
but when run in browser, browser's url redirecting https://company-name.infusionsoft.com/etc-etc
how not running in background ? why picking in address bar ? reason , it's not redirecting website url.
Comments
Post a Comment