Laserlight and Davy have answered your question but I was already in the midst of doing this, so you can have it anyway ...
You could put a hidden field here (form2.php)...
echo:"<input type=hidden name=how_many value=".$_REQUEST['how_many'].">";
for($i=0;$i<$_REQUEST['how_many'];$i++){
echo:"your name:";
echo:"<input type=text name=how_many".$i." size=2>";
}
... which gets sent on to result.php ...
echo $_REQUEST['how_many'];
for($i=0;$i<$_REQUEST['how_many'];$i++){
echo $_REQUEST['how_many'.$i];
}
Note that the use $HTTP... variables is now deprecated. You should use $POST, $GET, $REQUEST etc as soon as possible ...even if the old way works on your current setup.
See predefined variables for details
One other thing ... this is not crucial at the moment, but is becoming more and more so ... put "" around your attribute values ...
echo '<input type="hidden" name="how_many" value="'.$_REQUEST['how_many'].'">';
... you can use '' for the string itself. Apart from anything else, it's a lot easier to debug.
(I've kept to your style above)
Paul.
EDIT: typo