title: disable form action redirect when using curl to load a page
body: <p>Could someone give me an idea on how not to redirect the page when using cUrl.
  I mean, i got this code:</p>
  
  <pre><code>$url = "http://somesite.com/submit.php?name=" . $email . "&amp;email=" . $email;
  $ch = curl_init();
  curl_setopt($ch,CURLOPT_URL, $url);
  curl_setopt ($ch, CURLOPT_RETURNTRANSFER, false);
  
  $curl_output = curl_exec ($ch);
  curl_close ($ch);
  
  echo "Hello!";
  </code></pre>
  
  <p>What happens is that inside the <code>submit.php</code> there is a form that autosubmits using javascript. the <code>submit.php</code> does not continue since it will redirect to the form's action page.</p>
  
  <p>What curl options should I add on the code to make <code>submit.php</code> continue without the form action taking over the page and run the rest of the code of <code>submit.php</code>?</p>
  
  <blockquote>
    <p>submit.php</p>
  </blockquote>
  
  <pre><code>&lt;?php
  $name = $_GET['name'];
  $email = $_GET['email'];
  ?&gt;
  
  
  &lt;form method="post" action="actionpage.php" name="myform"&gt;
      ....
  &lt;/form&gt;
  
  &lt;script type="text/javascript" language="javascript"&gt;
   document.forms["myform"].submit();
   &lt;/script&gt;
  </code></pre>