Fix the ob_start problem and recreate result page.

1.	Because ob_start will change the whole page into html code,
	so I let it to change the page when saving the output file.
2.	But the parameter won't pass two page in one form,
	so I use session to make it pass through the pages.