aşağıdaki kodlarla https linkli bir siteye login olmaya çalışıyorum php öğrenmeye anlamaya çalıştığım için çok zorlanıyorum. belki sizler için saçma gelebilir ama beni yönlendirebilirseniz sevinirim.
aşağıdaki kodları bakarak yazım sizce neyi eksik arkadaşlar.
function baglan ($url,$degerler){
session_start();
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $degerler);
curl_setopt($curl, CURLOPT_COOKIEJAR, session_id());
curl_setopt($curl, CURLOPT_COOKIEFILE, session_id());
curl_exec($curl);
curl_close($curl);
}
baglan("https://scorpapp.com/home","dropDownLoginUsername=KULLANICIADI&dropDownLoginPassword=ŞİFRE");