in reply to CGI and security
Ovid's CGI Course describes security and debugging issues. Spend time reading and understanding this and you'll be in a better position to debug the problem/provide further problem details.