Assuming you want to embed the result into already existing, normal HTML pages, thats kinda difficult. HTML is text, and is just passed directly to a browser, so it cant execute a script on the server anyhow. If you are generating your HTML on the server already using CGI, then you need to get the generating programm to call the script, and output the result.