<pre>
i'm sending the variable through this form that i can't get interpreted correctly- the form elements are printing out in a loop with <name=text_$i> and $i increments. so, name=text_0, text_1, etc. but when i submit, and say print "$text_0, $text_1" i don't get the text elements value. i get 0,1. that's it. any ideas? the point is to loop through the array coming from the query and then when submitting, loop through the form elements and print out each thing that was changed. anyway, let me now if you have any thoughts.
///call to db- get array text_array
$html="<form action=\"$thispage\" method=\"post\"><table>";
for($i=0;$i<$num_options;$i++){
$text_id=$text_array[$i][text_id];
$text_name=$text_array[$i][text_name];
$text=$text_array[$i][text];
$thistextname="text_saved$i";
$html.="
<td><tr>$text_name</tr>
<tr>$tcheckbox
<textarea name=text$i value=\"\" cols=\"40\" rows=\"40\">
$text</textarea></tr>
<input type=\"hidden\" name=\"text_id_saved_$i\" value=\"\">
</td>";
}
$html.="<td><input type=\"submit\" name=\"action\" value=\"Submit\"></td></form></table>";
if ($action=="Submit"){
for ($y=0;$y<$num_options;$y++){
$thistext="$text_saved_$y";
$this = "$thistext";
$html.="y= $y; <br>text_saved_$y = $thistext<br>";
}
}
print "$html";
</pre>