Getting values?

From: Date: Fri, 18 Jun 2004 12:38:44 +0000
Subject: Getting values?
Groups: php.general 
Request: Send a blank email to php-general+get-188554@lists.php.net to get a copy of this message
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

« previous php.general (#188554) next »