How can I send form data to another server and capture the output and display it as message
<p>I want to submit form data to another url (website on another server) capture the success or failure message (server output)  and reply back on the form webpage.</p>

<p>This I want to achieve without letting the user know that the data was actually posted to another website.</p>

<pre><code>       echo "
      &lt;html&gt;
       &lt;body&gt;
       &lt;form action ='http://www.example.com/processor.php' method ='POST' &gt;
        &lt;input type ='hidden' value ='official' name = 'name'/&gt;
          &lt;input type ='hidden' value ='official2' name = 'email'/&gt;
          &lt;input type ='hidden' value ='official3' name = 'contactTime'/&gt;
          &lt;label for 'other info'&gt; Enter details here &lt;/label&gt; &lt;br/&gt;
      &lt;textarea rows='4' cols='50' name ='other info' maxlength='200'&gt;&lt;/textarea&gt;

       &lt;input type ='hidden' value ='official4' name = 'legalId'/&gt; 
     &lt;/br&gt;
      &lt;input type = 'submit' name = 'submit' value ='Send'/&gt;
  &lt;/form&gt;
  &lt;/body&gt;
 &lt;/html&gt;
"; 
// I want to send the data to http://example.com/processor.php
  ?&gt; 
</code></pre>

<p>I have successfully sent this data to <a href="http://example.com/processor.php" rel="nofollow">http://example.com/processor.php</a>
and success integer "2" was displayed on the page. I don't want this page to be seen by my site visitors. I want to capture this success integer from the other server and display it as a message to the user on my own website.</p>
