Hi gurus
I have a tiny problem that i can not submit web form after receive confirmation page.
Let make myself more clear.
I have couple of web sites and i want to post data automatically. I wrote some php script which using cURL. The problem is my sites has confirmation page. So far, i can post data, get confirmation page but i dont know how to post confirmation page.
All i can done with my php skill is below. Hopefully you guys help me or at least drive me to a solution with your comments.
Regards
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "http://mysite.net/test/bbs.cgi?guid=ON");
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_REFERER, "../english/index.html");
curl_setopt($ch, CURLOPT_POSTFIELDS, "subject=$_POST[subject]&FROM=$_POST[FROM]&mail=$_POST[mail]&MESSAGE=$_POST[MESSAGE]&bbs=english&time=1373480270&tepo=don&submit=Confirm");
$result = curl_exec ($ch);
curl_close($ch);
echo $result;