I have a page that has 2 forms and I would like to use this while loop within each form, but for some reason this code only runs once. Any ideas on how to make it run in each form?
Code:<form action="page1.php" method="post" name="form1" > <?php while (list($key,$value) = each($_REQUEST)){ echo "<input type='hidden' name='".$key."' value='".$value."'/>\n"; } ?> </form> <form action="page2.php" method="post" name="form2" > <?php while (list($key,$value) = each($_REQUEST)){ echo "<input type='hidden' name='".$key."' value='".$value."'/>\n"; } ?> </form>








Bookmarks