Hi there,
what it is?
- It is an Online-Shopping System
where customers can order their amount
of products (retrieved from D😎 for one
month.
what it does?
- my php-script generates a calendar
with #days_of_month * #products input cells
(<input type="text" name="cell[$i][$j]">).
And now we are at my problem:
what is the problem?
After the customer has filled in all input
cells and submitted the form to the Server,
I want php to store these values ( likely
into a global 2-dimensional session
variable). But the problem is another one:
If I have look to the source in the browser,
the input-cells have the right names, like
cell[0][0] for the amount of the first
product on the first day etc.
But if I do the following:
$test = $cell[0][0];
Then $test is just an empty string
although the input field which belongs to
$cell[0][0] was filled in and
isset($cell)=true)?!
Has anybody an idea for this?
Thanks in advance, md
appendix
for ($i=0; $j<=$monthdays; $i++){ // days of week
for ($j=0; $j<=$products; $j++) {
print "<input type=\"int\" name=\"cell[$i][$j]\" size=\"5\" value=\"$default\" onChange=\"check(this);\">\n";
}
}