I am trying to print the data of this page in a array in php, but post the right fields.
Basically i need to submit the data for 2010/2011 and Division Two (Men), I dont know where im going wrong?
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://www.englandbasketball.co.uk/leaguetables/default.aspx");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, true);
$data = array(
'ddlStartYear' => '2011',
'ddlCompetitionGroups' => '540'
);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$output = curl_exec($ch);
$info = curl_getinfo($ch);
curl_close($ch);
print ($info);
Thanks
You want to submit form with your information (2010/2011) and want to get result in array. If i am right them you should use SOAP. and there should be a function to handle your data to proceed them.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.