To change the content on the browser side, you need
some kind of client-side technology, such as ECMA script
("Javascript") or a plugin. However, what you describe
sounds to me like separate pages. Is there some way your
script can initially send only the first page, but
include a link (and maybe an HTTP refresh) back to
the script with an additional parameter that indicates
to print the second page, the third page, or whatever?
So, if there's no page set, you send page 1 (with a
link with page=2), but if the query string says
page=3 you send page 3 and a link with page=4. This
is the way all the major search engines do it, I think.
If the query string says page=n, you send page n with
a link to page=n+1
$;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}}
split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/