in reply to Redirect after refresh of page

It won't redirect when you reload which page?

Do you redirect when the form processing is done, or just when you don't have enough input? Keep in mind that reloading a submission generally resubmits the data (unless you redirect after processing it). That's why browsers issue warnings about resubmitting a POST request.

Also:

You'll need to redirect to 'http://www.mysite.com' instead of 'www.mysite.com';

Should you be using a POST method or a GET method in your form submission?

Please don't mix the object oriented CGI interface with the functional one, it hurts my eyes.