displaying a php file inside a div.
Posted: Mon Sep 24, 2007 2:32 am
Hello everyone.
I have a slight problem. I am about 3 months new to php coding and am requesting an answer to the following.
Bascially i have php link that should display a php file within a div.
2 php files are being used. one as the index the other as the file to be loaded into the div i created.
This is the php code - index.php. this code is inside php start and finish conditions.
<a href=view_subCat.php?cat_Id=$cat_Id target= content><font size='2' color='#0066FF'>"."$cat_Name"."</font></a>
This is the div where the view_subCat.php file need to be loaded - index.php - this code does not exist inside php start and close conditions
<div id="content" style="position:absolute; top:50; left:0; width:200; height:648; z-index:1; border: #000000 1px solid;background-color:none;"></div>
At the moment it is loading the view_subCat.php file in full view rather then inside the div i created. The div has an id called content that i use as a target. I have also tried
rel. However, after using either rel or target, the file loads the php in a new window or loads the file in full view of the index page where the div is coded.
Is there anything i can do to make sure it loads within the div's only?
I have a slight problem. I am about 3 months new to php coding and am requesting an answer to the following.
Bascially i have php link that should display a php file within a div.
2 php files are being used. one as the index the other as the file to be loaded into the div i created.
This is the php code - index.php. this code is inside php start and finish conditions.
<a href=view_subCat.php?cat_Id=$cat_Id target= content><font size='2' color='#0066FF'>"."$cat_Name"."</font></a>
This is the div where the view_subCat.php file need to be loaded - index.php - this code does not exist inside php start and close conditions
<div id="content" style="position:absolute; top:50; left:0; width:200; height:648; z-index:1; border: #000000 1px solid;background-color:none;"></div>
At the moment it is loading the view_subCat.php file in full view rather then inside the div i created. The div has an id called content that i use as a target. I have also tried
rel. However, after using either rel or target, the file loads the php in a new window or loads the file in full view of the index page where the div is coded.
Is there anything i can do to make sure it loads within the div's only?