Perfect! (muchas thanks). Now I would never have dreamed of moving the submit_parameters line before the cgi->header line because I assume the form itself won't print to the screen if cgi->header has not been processed first. Ouch: I don't understand why this fix works!