I trying to finish a lessons course for students.
I’m looking for, when a student finish a lesson and push “finish button”, to pass to a PHP global variable scope (likes $L-3, for lesson 3) a value of “1”, and then execute a PHP file where update a database, and after executed this file or “php stack code”, can link back to the index of course page.
After that I can calculate the advance of each student in the course, in the database, for each student and each course.
I didn’t find any button that allow me to pass this value, only have opportunity to link a file where is the database code, that execute correctly, but I don’t find the solution to be back to the index of course page.
I use button group that’s looks nice.
Complete process is : Unit finish > push the button > $L_3=1 > link to a page with code or execute a code file.php > update database and calculate the advance > back to index course page > show the advance.
Someone can help me, giving some advice?