Hi,
The problem is when I select all the students by using while loop and they displayed in the page, each student has a tick mark beside it to let the instructor select his name
I'm guessing you have a "key" for each student record in the database?
In your while loop you could do this
while ($array=mysql_fetch_array($qry)) {
etc etc
<input type=checkbox name=students[ ] value="<? echo $array["key"];?>">
Student Name
}
Then the form send an array called students, run a foreach on them and do as you please with them.
HTH
Reputation Points: 15
Solved Threads: 0
Junior Poster in Training
Offline 50 posts
since Mar 2005