title: get hidden input value from page using curl
body: <p>I am using curl to display a page response on a thank you page.  The code looks something like this:</p>
  
  <p><code>$curl_handle=curl_init();
  curl_setopt($curl_handle,CURLOPT_URL,'http://www.site.com');
  curl_exec($curl_handle);
  curl_close($curl_handle);</code></p>
  
  <p>The page above 'www.site.com' has a hidden input value in it that looks something like this:  </p>
  
  <p><code>&lt;input type="hidden" id="my_id" value="123" /&gt;</code></p>
  
  <p>All i need to do is grab the value ('123') from this hidden input and echo it out on my page.</p>
  
  <p>Would be grateful if anyone could help me out with this.</p>
  
  <p>Thanks!</p>