one possibility is to write a program that will output a simple page to the browser and then call another program that actually does the nitty gritty stuff. the browser will get a page and be satisfied and the other program will take care of dealing with the input.