here's what I have that logs in and visits another page that shows I'm logged in. I just cant submit a form after this. I need to visit the submit form to grab values from it
I've tried every thing that doesn't work
PHP Code:
curl_setopt($ch, CURLOPT_URL, 'http://my.com/login.php?');
curl_setopt ($ch, CURLOPT_POST, 1);
curl_setopt ($ch, CURLOPT_POSTFIELDS, 'username=PPC&password=madcharacters');
curl_setopt ($ch, CURLOPT_COOKIEJAR, 'cookie.txt');
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
$store = curl_exec ($ch);
stufffff
curl_setopt($ch, CURLOPT_URL, 'http://my.com/add.php');
$2ndpagecontent = curl_exec ($ch);
echo $2ndpagecontent;