At 22:24 22.03.2003, Jason Dulberg said: --------------------[snip]-------------------- >Thanks for your help... > >I tried the code as you suggested however when I attempted to echo the >variables for testing but nothing showed. > >for($i = 0; $i <= 1; ++$i) { > echo "<p>address".$_POST['address']['address'][$i]; > echo "<br>city".$_POST['address']['city'][$i]; >} --------------------[snip]--------------------
Jason, I tried the following and it worked: <form method="post"> <b>Home Address:</b><br /> <input type="text" name="address[address][0]" value="<?php echo $_POST['address']['address'][0]; ?>"> <input type="text" name="address[city][0]" value="<?php echo $_POST['address']['city'][0]; ?>"> <br /> <b>Work Address:</b><br /> <input type="text" name="address[address][1]" value="<?php echo $_POST['address']['address'][1]; ?>"> <input type="text" name="address[city][1]" value="<?php echo $_POST['address']['city'][1]; ?>"> <br /> <input type="submit"> </form> <?php for($i = 0; $i <= 1; ++$i) { echo "<p>address $i: ".$_POST['address']['address'][$i]; echo "<br>city $i: ".$_POST['address']['city'][$i]; } -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php