OK... so, say you have a form like this:
<form action="page.php" method="post">
<input type="hidden" name="var[]" value="1">
<input type="hidden" name="var[]" value="2">
<input type="submit" value="press me!">
</form>
... and then you want to get to it from the page you send the form to, with the $_POST vars. How do you do that? this doesn't work:
<?php
while (list($key,$val)=each($_POST['var']))
{
// do something
}
?>
Neither does it work if I do $_POST['var'][] or something...
--Jason