Mam trudności z zalogowaniem się na vendetta.pl. Poniżej przedstawiam swoje wypociny. Problem polega na tym, że jak wykonam skrypt to mi się ukazuje strona vendetta.pl - bez grafiki (wiadoma sprawa) i uzupełnione pola ln (Login) i pw (hasło), natomiast serwer jest ustawiony jako Serwer 1 a powinnien być Serwer 7, bo jak zmienie z Serwer 1 na Serwer 7 i wcisnę 'Login' to się poprawnie loguje. Tylko jak zrobić żeby skrypt sam się do końca logował



<?php $cookie_file = 'cookie.txt'; $c = curl_init('http://vendetta.pl/vendetta/login.php'); curl_setopt($c, CURLOPT_COOKIEJAR, $cookie_file); curl_setopt($c, CURLOPT_COOKIEFILE, $cookie_file); curl_setopt($c, CURLOPT_URL, 'http://vendetta.pl/vendetta/login.php'); curl_setopt($c, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; pl; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12;MEGAUPLOAD 1.0"); curl_setopt($c, CURLOPT_POST, 1); curl_setopt($c, CURLOPT_POSTFIELDS, 'ln=Michalosu&pw=YJIUZIPW&Uni=s7.vendetta.pl/vendetta/login.php&antiback=1249408169&layout=1'); curl_setopt($c, CURLOPT_RETURNTRANSFER, 1); curl_close($c); ?>
<form action="" method="POST" name="formular" target="_top" onsubmit="changeAction('login');"> <table width=906 align="center" cellpadding="0" cellspacing="0"> <tr> <td valign=top> <table width="799" border="0" cellspacing="0" cellpadding="0" height="100%"> <tr> <td background="vendetta/img/login_bg.jpg" height="63" width="449" align="center"> <select name="Uni" class="loginbox" size=1> <option value=s1.vendetta.pl/vendetta/login.php>Serwer1</option><option value=s2.vendetta.pl/vendetta/login.php>Serwer2</option><option value=s3.vendetta.pl/vendetta/login.php>Serwer3</option><option value=s4.vendetta.pl/vendetta/login.php>Serwer4</option><option value=s5.vendetta.pl/vendetta/login.php>Serwer5</option><option value=s6.vendetta.pl/vendetta/login.php>Serwer6</option><option value=s7.vendetta.pl/vendetta/login.php>Serwer7</option><option value=s8.vendetta.pl/vendetta/login.php>Serwer8</option><option value=s9.vendetta.pl/vendetta/login.php>Serwer9</option><option value=s10.vendetta.pl/vendetta/login.php>Serwer10</option></select> <input type=hidden name="layout" value=1> <input type=hidden name="antiback" id="antiback" value=1249408169 > <input type=text name="ln" value="" size=10 maxlength=30 class="loginbox"> <input type=password name="pw" value="" size=10 maxlength=30 class="loginbox"> <input type=image src="vendetta/img/login_bt.jpg" width="50" height="16"> <br> <font class="content_text" style="font-size: 0.7em;">Logując się, akceptuję <a href="http://agb.gameforge.de/index.php?lang=pl&art=tac&special=&&f_text=000000&f_text_hover=B22222&f_text_h=E9E5D3&f_text_hr=E9E5D3&f_text_hrbg=E9E5D3&f_text_hrborder=B22222&f_text_font=arial%2C+arial%2C+helvetica%2C+sans-serif&f_bg=E9E5D3" target="_blank" class="copyright">OWU</a>.</font> </td> </form>