On Jul 6, 4:48 pm, Robert Gonzalez <
robert.anthony.gonza...@gmail.com>
wrote:
> Change your settings on your web server to push .html extensions through the
> PHP parser, then code your display.html file in PHP.
>
> On Mon, Jul 6, 2009 at 8:24 AM, Apurva Chaudhary <
cryst4lcl...@gmail.com>wrote:
>
>
>
> > Hello guys,
>
> > I have a page index.php which takes random data from the databse.
> > I want the content of index.php to be displayed under display.html
> > i tried using jquery but that doesnt work.
>
> > how do i achieve this? please help
....or do something clever with javascript. You could read in
index.php using an Ajax call and write it to the document. Or create
an intermediate PHP file that encapsulates each line of index.php in
document.write("...."); calls (after escaping the quotes). Or just do
a redirect from display.html to index.php
C.