I have a php page on which I am creating textboxes dynamically and assigning them to an array. Then I am trying to retrieve them in a function but it won't work. Here is the code:
for ($i = 1; $i <= $rows; $i++) {
for ($j = 1; $j <= $cols; $j++) {
echo "<tr><td><input type = \"text\" value = \"", $sdarray[$i][$j], "\" size = \"3\" ></td></tr>";
}
}
This code is part of a input function. In another function, I'm trying to just print the values and it doesn't work. I've tried declaring the array as a global variable in either one of them and both of them. Could someone please tell me how I can make this work. Thank you so much