hgedek 1 Newbie Poster

I am searching that information:
Using CGI scripts , an opengl application will be shown on the web browser.
our opengl application will consist of objects like shperes,balls...
user can control them using mouse from browser.so my question is :
firstly i want to learn what i need to learn?how should i start to search because i couldnt find both cgi and opengl at same subject.
so if you give info or web sites , they will be so helpfull.