Can anyone complete this code so it can directly be saved as example.php? I really need this, i would have done this simple thing myself but im AWAY frm my pc:-( all u need 2 do is add the php and html tags no scripting required.just make this code run able pls. .heres the code :
$login ="http://www.pay***.com/login_script.php";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $login);
curl_setopt($c, CURLOPT_COOKIEJAR,"cookies.txt");
curl_setopt($c, CURLOPT_COOKIEFILE,"cookies.txt");
curl_setopt($c, CURLOPT_POST, 1);
curl_setopt($c, CURLOPT_POSTFIELDS,"username=sifat3d&password=aint gonnatellya");
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_FOLLOWLOCATION,1);
$login_done = curl_exec($c);
echo $login_done;
$login ="http://www.pay***.com/login_script.php";
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $login);
curl_setopt($c, CURLOPT_COOKIEJAR,"cookies.txt");
curl_setopt($c, CURLOPT_COOKIEFILE,"cookies.txt");
curl_setopt($c, CURLOPT_POST, 1);
curl_setopt($c, CURLOPT_POSTFIELDS,"username=sifat3d&password=aint gonnatellya");
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($c, CURLOPT_FOLLOWLOCATION,1);
$login_done = curl_exec($c);
echo $login_done;
Comment