and this is code
why it doesn't make any output and there is no result.
Code: Select all
$id =""; // my username
$password =""; // my pass
$secfrdcodedvar =""; // some value i get from the page
$frm-id=""; // some value i get from the page
$url=""; // address of <form> tag in action parameter
$POSTFIELDS = 'data[username]='.$id.'&data[password]='.$password.'&secfrdcodedvar='.$secfrdcodedvar.'&frm-id='.$frmid;
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt ($ch, CURLOPT_POST, true);
curl_setopt ($ch, CURLOPT_POSTFIELDS, $POSTFIELDS );
curl_setopt ($ch, CURLOPT_COOKIEJAR, "cookie.txt");
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, true);
echo curl_exec ($ch);