I have been developing a course management system with PHP and MySQL. I recently ran into a problem. I created a basic webpage (EditCompletion.php
). Basically, what I want to do, is have a link on that page that opens a jQuery Modal Window and within that modal window should be 3 radio buttons, a small description paragraph (which changes when a new radio button is clicked), and a submit button. This is how I want it to work:
I want to be able to select a student (CERTAIN SELECTED STUDENT
) and a lesson (CERTAIN SELECTED LESSON
) then I want to be able to click the link on EditCompletion.php that then opens the jQuery Modal Window. I want to then be able to choose from the following options:
Unlock - (Description Paragraph - Are you sure your want to unlock (CERTAIN SELECTED LESSON) for (CERTAIN SELECTED STUDENT))?
Exempt - (Description Paragraph - Are you sure you want to exempt (CERTAIN SELECTED STUDENT) from (CERTAIN SELECTED LESSON))?
Master - (Description Paragraph - Are you sure you want to master (CERTAIN SELECTED STUDENT) out of (CERTAIN SELECTED LESSON))?
THE CERTAIN SELECTED
will show up as the CURRENT SELECTED [WHATEVER]
. For example, SELECT STUDENT JOHN DOE
and LESSON 1
on EditCompletion.php
and then click the link to open the modal. I want to select an option using radio buttons, and upon clicking "save", the MySQL database would be updated.
something like this?
<?php
for($samples as $sample){
echo '<a onclick="return (confirm(\'..message here.. for '.$sample['name']. 'about'.$sample['lesson'].'\'))? true: false;">Action</a>';
}
?>