Witam.
Mam takie o to logowanie :
$cookie = 'plik_cookie';
$curl = curl_init();
curl_setopt($curl, CURLOPT_COOKIEFILE, $cookie);
curl_setopt($curl, CURLOPT_COOKIEJAR, $cookie);
curl_setopt( $curl, CURLOPT_COOKIE, $cookie);
curl_setopt($curl, CURLOPT_URL, 'http://strona.pl');
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, 'server=16&username=kkkk&password=kkkk&submitlogin=Zaloguj');
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($curl);
curl_close($curl);
kiedyś nim logowałem się do róznych gier typu sor, bitefight, metaldamage, tylko zmieniałem dane w post a teraz mam taki formularz i nie idzie sie tym zalogowac . Dlaczego?
<form name="form_login" method="post" action="login/proxy_login.php">
<div class="left spacer">Serwer:
</div>
<div class="left spacer">Nazwa gracza:
</div> <div class="right spacer"><input type="text" id="username" name="username" maxlength="100" size="20" tabindex="2"></div> <div class="left spacer">Hasło:
</div> <div class="right spacer"><input type="password" id="password" name="password" maxlength="100" size="20" tabindex="3"></div>
<div class="right"><a href="#" onclick="setForgottenScreen();" class="loginlink">Zapomniałeś hasła?
</a></div> <div class="left spacer"> </div> <div class="right spacer"><input class="submitbutton link" type="submit" id="submitlogin" name="submitlogin" tabindex="5" value="Zaloguj"></div>
Ten post edytował kubek15 14.03.2010, 14:13:59