in reply to need help on cgi script
Start by reading the CGI related material in the Tutorials section, write some code that you think may be up to the task, test it, then come back if you have trouble.