title: how to use simple html dom get inner html
body: <p>I have some code for get html table result tracking from this site <a href="http://www.jne.co.id/tarif.php" rel="nofollow">http://www.jne.co.id/tarif.php</a></p>
  
  <p>i try to create from my localhost this code:</p>
  
  <pre><code>&lt;?php include_once("simple_html_dom.php");
  
  
  if($_POST){
  
      //extract data from the post
      //set POST variables
      $url = 'http://www.jne.co.id/tarif.php';
      $fields = array(
          'origin_code' =&gt; urlencode($_POST['origin_code']),
          'dest_code' =&gt; urlencode($_POST['dest_code']),
          'weight' =&gt; urlencode($_POST['weight']),
          'g-recaptcha-response' =&gt; urlencode($_POST['g-recaptcha-response']),
      );
  
      $fields_string = '';
      //url-ify the data for the POST
      foreach($fields as $key=&gt;$value) { $fields_string .= $key.'='.$value.'&amp;'; }
      rtrim($fields_string, '&amp;');
  
      //open connection
      $ch = curl_init();
  
      //set the url, number of POST vars, POST data
      curl_setopt($ch,CURLOPT_URL, $url);
      curl_setopt($ch,CURLOPT_POST, count($fields));
      curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string);
      curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  
      //execute post
      $result = curl_exec($ch);   
  
      $string = $result;//htmlentities($result);
  
      //close connection
      curl_close($ch);
  
      // Create a DOM object
      $html_base = new simple_html_dom();
      // Load HTML from a string
      $html_base-&gt;load($string);
  
      $str = $html_base-&gt;find('.tracking');
  echo $str;
  
      $html_base-&gt;clear(); 
      unset($html_base);
  }
  ?&gt;
  
  &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
  &lt;head&gt;
  &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
  &lt;title&gt;Untitled Document&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
  &lt;form class="check validate" action='' method='post' style='float:none;max-height:none;'&gt;
  &lt;div class="row"&gt;
  &lt;label&gt;
  &lt;input type='hidden' name='origin_code' value="CGK10000" class='required'&gt;
  &lt;input type="text" name='origin_label' placeholder="Origin" class='autocomplete required' data-url='lib/origin.php' data-origin="JAKARTA" value="JAKARTA"&gt;
  &lt;br&gt;Origin Shipment
  &lt;/label&gt;
  &lt;label&gt;
  &lt;input type='hidden' name='dest_code' value="BDO10000" class='required'&gt;
  &lt;input type="text" name='dest_label' placeholder="Destination"     class='autocomplete required' data-url='lib/dest.php' data-origin="BANDUNG" value="BANDUNG"&gt;
  &lt;br&gt;Destination Shipment
  &lt;/label&gt;
  &lt;label&gt;
  &lt;input name="weight" type="text" placeholder="1" style="width:30px; text-align:center" value="1" class='required number'&gt;
  &lt;br&gt;Weight(Kg)
  &lt;/label&gt;
  &lt;script src='https://www.google.com/recaptcha/api.js'&gt;&lt;/script&gt;
  &lt;div class="g-recaptcha" data-sitekey="6LeyjxETAAAAAE5qSotpy40_cG31GyRm-VSBQaWU" style="margin:10px 0px;"&gt;&lt;/div&gt;
  &lt;button class="btn red"&gt;check&lt;/button&gt;
  &lt;/div&gt;
  &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>i need to get table html with class"table_style tracking", see this image</p>
  
  <p><a href="http://i.stack.imgur.com/hQrK1.png" rel="nofollow">Image</a></p>
  
  <p>EDIT:
  i just need get html <code>&lt;table&gt;</code> with class tracking, not string inside html. result like this html:</p>
  
  <pre><code>&lt;table width="100%" border="0" class="table_style tracking"&gt;
  &lt;thead&gt;
  &lt;tr&gt;
  &lt;td&gt;Nama Layanan&lt;/td&gt;
  &lt;td align="center"&gt;Jenis Kiriman&lt;/td&gt;
  &lt;td&gt;Tarif &lt;/td&gt;
  &lt;td&gt;ETD(Estimates Days) &lt;/td&gt;
  &lt;/tr&gt;
  &lt;/thead&gt;
  &lt;tbody&gt;&lt;tr&gt;
  &lt;td&gt;OKE&lt;/td&gt;
  &lt;td align="center"&gt;Dokumen / Paket&lt;/td&gt;
  &lt;td&gt;Rp. 10.000&lt;/td&gt;
  &lt;td&gt;2 - 3 D&lt;/td&gt;
  &lt;/tr&gt;&lt;tr&gt;
  &lt;td&gt;REG&lt;/td&gt;
  &lt;td align="center"&gt;Dokumen / Paket&lt;/td&gt;
  &lt;td&gt;Rp. 11.000&lt;/td&gt;
  &lt;td&gt;1 - 2 D&lt;/td&gt;
  &lt;/tr&gt;&lt;tr&gt;
  &lt;td&gt;YES&lt;/td&gt;
  &lt;td align="center"&gt;Dokumen / Paket&lt;/td&gt;
  &lt;td&gt;Rp. 22.000&lt;/td&gt;
  &lt;td&gt;1 - 1 D&lt;/td&gt;
  &lt;/tr&gt;&lt;tr&gt;
  &lt;td&gt;SPS&lt;/td&gt;
  &lt;td align="center"&gt;Dokumen / Paket&lt;/td&gt;
  &lt;td&gt;Rp. 403.000&lt;/td&gt;
  &lt;td&gt; &lt;/td&gt;
  &lt;/tr&gt;&lt;/tbody&gt;
  &lt;/table&gt;
  </code></pre>