How do I automatically copy text generated from a form into another file in PHP?
<p>So on my site, I have a form set up, and when one enters information, it spits back another page with the results all neatly formatted in about 10 lines. How can I make PHP copy those 10 lines and append it to the end of another file on my site? If this is only possible in JavaScript, could you please tell me so, so that I may post in the Javascript forum?</p>

<p>Let me provide a link to my website to illustrate: please visit new/entry.hostei.com (DELETE THE /), and click "Submit Query" at the bottom. You need not type anything in the boxes. Viewing the page source, the lines I would want copied are the line starting after &lt; /head>, through the next ten lines (until the blank space starts).</p>

<p>Note: I do not want to replace the "destination file," but merely add lines of code onto the end.</p>

<p>I've tried to search for this on Google, but it involves too many keywords and so there is not much useful output.  I've also asked on another forum, but so far they have not been able to provide any useful output.</p>
