title: How to extract value from hidden field on form
body: <p>I have form (on my own blog/cms install which i want to play with a bit) with hidden value which i want to extract. Problem is that there are 2 forms on that page, each with that hidden field with value. On each form field name is the same, only hidden value differs. Something like this:</p>
  
  <pre><code>&lt;input type="hidden" id="_hiddenname" name="_hiddenname" value="valuehere"/&gt;
  </code></pre>
  
  <p>Both look the same in html source. So, to help myself i opened php file with this page, edited it and added some random words before field that i need. So now one field (the one that i <em>don't</em> want) is like in above code but field i need is like this:</p>
  
  <pre><code>mywordshere &lt;input type="hidden" id="_hiddenname" name="_hiddenname" value="valuehere"/&gt;
  </code></pre>
  
  <p><strong>How do i extract value from field i need</strong> (with mywordshere before its code) if i have my page's html source in php variable (grabbed with libcurl)?</p>