I have used curl to retrieve step one in a process, i now need to input step 2
here is the code
// create a new curl resource
$ch = curl_init();
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "https://services.hibernian.ie/direct/HibernianDirectWeb/motor/motorStepOne.do");
// curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$data = array('acceptedTerms' => 'on','bmdCurrentDate_Year' => '2007','bmdCurrentDate_Month' => '04','bmdCurrentDate_Day' =>'09','bmdCurrentDate_Hour' => '18','bmdCurrentDate_Minute' =>'10');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
// curl_setopt($ch1, CURLOPT_URL, "https://services.hibernian.ie/direct/HibernianDirectWeb/motor/motorStepOneSave.do");
// grab URL, and return output
$output = curl_exec($ch);
// close curl resource, and free up system resources
curl_close($ch);
// Print output
echo $output;
[code=php]
how do i post to this output?
thanks