You have to eventually submit the form, either by form.submit() or by using a submit button, to get the hidden values to php. a submit button is easy, or you could use the onsubmit= handler to call a function.
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>
<form method=post action=page3.php onsubmit="test_me();">
<input type=text name="fname">
<input type=text name="lname">
echo "<input type=hidden "name=hidden$count">
<input type=submit name="submit" value="Submit Form">
you can always change the submit button to something else, and then add the document.myform.submit() line to test_me(), like Shiju recommended.