9 times out of 10 you should use a form with a submit button, instead of a hyperlink
(no, target is not going to help you here)
you have the beginning code to show the courses, but you need code to :
a) access what is clicked
b) record the action
c) show what has been clicked and by who
plus all the other bits that are needed to make everything work well
but to explain all this is going to take a lot of writing when you should be able to find a good tutorial online
do yourself a favour and do a basic tutorial first!