I have a form that uses -$i in it to create multiple write boxes for editing the information. It then passes that information to another script that read through and modifies the DB based on the information.
I have this code in my parsing script and I know it is BC of the way I am accessing data, can anyone help? <! -- Snip --> for ($i=0; $i<$num_rows; $i++) { if ($_POST[comment-$i] != "") $comment = $_POST[comment-$i]; else $comment = $_POST[color-$i]; $id = $_POST[id-$i]; $sess = $_POST[SESSID-$i]; <! -- End Snip --> All the values turn up empty doing it this way, and there are about 14 values to do. TIA Robert -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php