how to submit a form from a php script
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/2592146/auto-submitting-a-form-curl">Auto Submitting a form (cURL)</a>  </p>
</blockquote>



<p>I have a form which submits to a php script. In this form I need to collect all the $_POST data and then post this on to another form (the reason for this isn't really relevant but there is a good reason).</p>

<p>My question is once I've collected all the data from the initial form submit, sanitised it and assigned it all to variables how do i then package it all up to send to the next form? The second form is expecting a $_POST with hidden fields with particular name attributes....so how do i do this? do I build the actual html and submit that somehow to the second form or do I buld some sort of array and send that? </p>

<p>hope this makes sense. Kind of hard to put in to words.   </p>
