PHP: Generating a html table through a form

QuestionsPHP: Generating a html table through a form
sethbeckerman5 Staff asked 4 years ago

This is practice coursework for my Informatics course. We've just started programming in PHP and our task is to program a website that generates tables for the user.

password prompt
ask the user how many rows and columns the table should have
based on the last question; create a form with the same amount of input boxes
generate the table with the input of step 3

I've accomplished everything until step 4. The user can input data in the form, but I the problem is that when I try to generate the table, PHP will show me this error message: "Undefined index: rows on line 70".
As I described earlier I'm just about to learn PHP, so there may be many "not so very nice programming approaches"; therefore I'm open to all kinds of recommendations.


View on Stack Overflow