gah... so now im struggling with a cookies/sessions issue
since ive already visited the site ive already choosen a "division" from a select field... then it would bring me to the login... now when i go back it just asks me to login
but with curl, the page output is the page that is asking for the division
"please select a division b4 you login"
so i tried passing the value of the select i need like i did with the other post vars and it kicks back double on the output... that is the page is shown twice
i know this isnt very clear or explicitive... if any users here are using roadrunner i could definitely get more help from you... im trying to monitor my account through their webmail panel
https://provselfcare.nyroc.rr.com/subselfcare/
the division i want is the first:
option value="700000000000000021|alb-Albany Division (Capital Region)">alb-Albany Division (Capital Region)</option>
so now heres my updated code... help!
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,'https://provselfcare.nyroc.rr.com/subselfcare/Division.do');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,'division=700000000000000021|alb-Albany Division (Capital Region)');
curl_exec($ch);
curl_setopt($ch, CURLOPT_URL, 'https://provselfcare.nyroc.rr.com/subselfcare/LogonSubmit.do');
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,"username=$username&password=$password");
curl_exec($ch);
curl_setopt($ch, CURLOPT_URL, 'https://provselfcare.nyroc.rr.com/subselfcare/menuFormAction.do');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$page = curl_exec($ch);
curl_close($ch);
echo $page;