in reply to CGI and redirect

The reason this doesn't work is that you're issuing the redirect (which issues a Location header) *after* you've already completed the HTTP header. So to the browser, it just looks like it's getting the redirect as part of the content of the page.

This should fix it:

print $query->redirect(-target => 'ResultWindow', -expires => 'now +', -uri=>'http://www.mindbase.net/');
What is nhp? Did you mean nph? It worked fine for me w/o that (as of course it would, since nhp doesn't seem to mean anything).