not working means, it's not redirecting at all to the html page. I have pasted the code. what I am trying to do is ... while my cgi script processes I will display this temporary page and when processing gets complete, I will overwrite the temporary page with the main result and it will be displayed.