what exactly do you want to do? Making a quiz, like question1.php, question2.php questionxx.php etc... and a s cript in final.php that sends the user to some folder that needs authorisation?
You can give some variables with the script.
Like:
if($rightanswers>10)
{
$username="authorisedname"; //fill in a name
$password="authorisedpass"; //fill in a pass
header("location:someotherpage.php?user=$username&pass=$password");
} else {
header("location:someotherpage.php");
}
And then you need authorisation for that folder using those variables.
This isn't very secure actually. Be more specific please