i get a web page as input invariable $doc and another in $doc2.
after some operations on $doc i display the web page using
echo $doc->saveHTML();
no when the output is displayed , when i click on a link in the page , i want to echo an another page "echo $doc->saveHTML();".
i am a noob in php and heard this cant be done using php and has to be done in ajax...
if this has to be done in ajax will the entire php code that i did need to be changed
or can it be done in php itself .. please help