html form to remote site, fetch the single result and display in my page
<p>I have the website <strong>mysite.com</strong> and need to fetch the content from another site using a html form and returning the result to my site. The form does not uses method GET but method POST ...</p>

<p>I created a web form to lookup for stolen cars at the website of the chilean police <strong>FROM MY WEBSITE</strong>. Here is the form</p>

<pre><code>&lt;form action="http://consultawebvehiculos.carabineros.cl/index.php" 
name="form1" id="control" method="post"&gt;
&lt;input type="hidden" name="accion" value="buscar"&gt;
&lt;table id="SEARCH"&gt;
&lt;tr&gt;&lt;td class="REGISTRATION"&gt;
&lt;input name="txtLetras" type="text" class="PLATE" maxlength="2"&gt;
&lt;/td&gt;&lt;td class="SEP"&gt;°&lt;/td&gt;
&lt;td class="REGISTRATION"&gt;
&lt;input name="txtNumeros1" type="text" class="PLATE" maxlength="2"&gt;
&lt;/td&gt;&lt;td class="SEP"&gt;°&lt;/td&gt;
&lt;td class="REGISTRATION"&gt;
&lt;input name="txtNumeros2" type="text" class="PLATE" maxlength="2"&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;div id="START" onClick="document.forms['control'].submit();"&gt;
CONSULTAR EN EL REGISTRO&lt;/div&gt;&lt;/form&gt;
</code></pre>

<p>The form must get the result from </p>

<pre><code>http://consultawebvehiculos.carabineros.cl/index.php
</code></pre>

<p>where the result is displayed like this (in the police site)</p>

<pre><code>&lt;p id="u973-2"&gt;
         La patente consultada &lt;span class="Estilo1"&gt;NO&lt;/span&gt; presenta Encargo..    &lt;/p&gt;
</code></pre>

<p>This result I must get this and display on my page, fetch it.
I know how to fetch static content but how to fetch this kind of result ?
Any idea ?</p>

<p>We have the div ID name at least and is always the same name on this page ...</p>

<p>Trying with AJAX</p>

<pre><code>&lt;script src="//code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt; &lt;!-- load jquery via CDN --&gt;
&lt;script&gt;
   $(document).ready(function() {//start document ready
      $('#start').click(function (e){
        e.preventDefault();

        $.ajax({
        type: 'POST',
        url: 'http://consultawebvehiculos.carabineros.cl/index.php',
        data: $("#cdr-form").serialize(),
success: function(d){
   $(".result").html(d);
}
    });
  });
 });//end document ready
&lt;/script&gt;
</code></pre>