Beans that can handle programming?
I tell you, those genetic engineers are amazing.
[/bad programming joke]
The easiest way I know of doing it is passing the data long in post/get format.
Here's my example:
http://crazyoddball.datablocks.net/getpost.html
The source code for the target of that page, getpost.php, is found here:
http://crazyoddball.datablocks.net/getpost.php.txt
The target of that page, mail.php, is here:
http://crazyoddball.datablocks.net/mail.php.txt
Oddly you may need to use view source on the .txr pages to get the PHP code. Not sure why it does that...
In any case.
What that does is take data from the form, which targets your PHP.
getpost.php then takes the data the user submitted, places it into a GET query string, and passes it to mail.php using fopen().
mail.php just displays the data it recieved, rather than doing anything meaningful. All you need to do is have mail.php use whatever method you want it to use, and remove the display part of getpost.php.
One note however. If this does not work, it may be because you have to use fread to actually pass the data along.
If that's true, just use fread($fp, "1") to read one byte of data. That should work, but I don't think you'll need to do even that.
So as you can imagine, you can pass any amount of text data from one form to another in this way.
I'm sure you can also use a POST method or send along non-text data, but I haven't a clue how to do it.
Still trying to figure that out 🙂