maxp,
As a fellow newbie to PHP that has researched this issue far too much over the last couple days, I have stumbled across a magical solution. This was given to me by another fellow developer.
The easiest way to do what you're trying to do is with Sessions...
Hidden Variables are an option, but what if you decide to make the form 10 pages? Then you'll be copying and pasting variables and having to continually add to them.
Anyway, simply copy and paste this code at the top of each page in the form:
[INDENT]<?php
session_start();
foreach($POST as $key => $val)
{
$SESSION[$key] = $val;
}
?>
[/INDENT]
Then, on your last page when you want to view the variables, you just list the code like this for each variable you want to print, surrounded by <p> tags or whatever you like:
[INDENT]<?php echo $var?>[/INDENT]
If you need any other code for this, feel free to respond on the boards or drop me a line through other methods. That's all there is to it, though, and it works just great on my form.