Need some PHP Code, Trying to do much on one page?
Posted on 2004-10-09
I am developing a web based "progress report" system for a school. So on one page, I say "enter Grade, teacher name, subject, and Term". once the teacher enters that (and presses submit), I query the DB (MySqL) for the # of kids, and then we move to the next page.
On the next page, I create the array of student IDs and names. I am able to say "Enter progerss report for " and I get the first students name (using current function in PHP). Under this, there are numerous radio buttons for the teachers (Conduct - Good, bad, ugly, Effort - Good Bad Ugly, Homework -Same, etc.) and then a comment box.
I want two hyperlinks at the bottom (submit, which would write all the choices to the DB), and Next, which would skip this student (since not all teachers have all the kids). of course, once eitehr hyperlink is chosen, we need to refresh the page, show the next kids name, etc.
How do I do that part? Since I create the array on this page, if I just reload thepage, wouldn't I be recreating the array? How do I move to the next student?
Sorry if this is lengthy, I am trying to be explicit!
Any help would be great!