Going to the page and a couple of clicks on the JavaScript link

The script should go to the page http://sait.ru/test/vasya and click on a javascript link like this:

<a id="ctl00_cph_data_ctl01_lbToggleOfferTr" href='javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ctl00$cph$data$ctl01$lbToggleOfferTr", "", true, "", "", false, true))'>vasya</a>

After that, the button should be clicked:

<input type="submit" name="ctl00$cph$data$ctl01$oiOfferInfo$btSendProposal" value=" " onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ctl00$cph$data$ctl01$oiOfferInfo$btSendProposal&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="ctl00_cph_data_ctl01_oiOfferInfo_btSendProposal">

After that, he should pause for 2 seconds and click again and do this 10 times. But the worst thing here is that next time you need to make clicks on a different javascript link and button. But in all buttons and links some parts are the same. In the link:

_lbToggleOfferTr" href='javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("ct

In button:

$oiOfferInfo$btSendProposal" value=" " onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;ct

How to do this in PHP?


Answer 1, authority 100%

In general, it seems to me easier to do javascript browser plugin (Chrome), which will do everything you listed. And so you need:

  1. firebug(or a similar tool for your browser) to look for logic in the site’s javascript files, i.e. .e. how data is generated to submit the form to the server. It will also help you determine what data is sent to the server.
  2. curl, it will “emulate a browser” for you from request to request to a remote site;
  3. patience and more patience :).