Sorry about not getting back to you last night like I said I would, I got overloaded with schoolwork. I can't wait until next year when I can go off to college and have more free time, yay! lol Anyways...
It would seem as though something got set wrong. I would first check the cookie file to see if it has anything in it (might look something like:).
Code:
scea.com FALSE /SOCOM3_HTML/account/Account_Login_Submit.jsp FALSE 0 username *Username*
scea.com FALSE /SOCOM3_HTML/account/Account_Login_Submit.jsp FALSE 0 password *random characters*
If you don't have anything at all there, obviously its an issue with the first part. I would probably also try changing the code to:
Code:
curl_setopt($ch, CURLOPT_POSTFIELDS, "userName=" . $usernamehere . "&passWord=" . $passwordhere);
// display actual output of the first page
echo curl_exec($ch);
echo "<hr />\n<hr />\n";
Code:
curl_setopt($ch, CURLOPT_URL, $url);
// display actual output of the second page
echo curl_exec($ch)
// can parse here, currently ouputing each line
//foreach( $result as $currline ) { echo $currline . "\n"; }
: so that you can further narrow down where the problem might be. Let me know what you get with those changes, I will try to a little more prompt this time :D.