in reply to run a CGI script
What you're probably looking for is covered and discussed in Ovid's CGI Course. See also Tutorials -> Web Programming.