in reply to Inserting values into a form

Yes. CGI scripts print html, and you can print some html with form values already filled out. See CGI (examples), http://www.formbuilder.org/