Jump to content

sniperscope

Members
  • Posts

    280
  • Joined

  • Last visited

Everything posted by sniperscope

  1. Dear teamatomic thank you very much for your reply. Let me explain step by step; 1 - my previous code auto submit form 2 - return result shows me confirmation page to make sure i have entered correct data through my browser (echo $result) 3 - There is another submit button (i entered correct value, please send it) 4 - here is my code stop... 5 - i want to submit that form too. but seems i can not with my code. please give me an idea if have any better solution. Regards
  2. 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;
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.