I have a simple web page laid out in div tags formatted with CSS.
I would like to load separate PHP files in the main content div.
I have looked on some forums and they generally state to simply display a page i can use
<div id="example">
<?php include "pl_user.php" ?>
</div>
but to update the page within the div when clicking a hyperlink the best way it to use java/ajax (something i have no experience of)
I believe it should be possible to just use PHP as long as i'm wiling to refresh the page in order to do this (which i am)
I also believe in terms of copy and pasting url's for friends this is adventagious as the url will get u back to the same place? i'e the url will include pagevariable=1 subpage variable=2 etc?
if anyone could point me at a guide or give some simple instruction i'd be grateful (please bear in mind i've only ever made one site from PHP years ago so treat me as a noob.
one more point. I think there may be security issues in this method but with this site it shouldn't matter as i'm only displaying info. however any variations on the method im getting at which are more secure would also make good reading =)
I would like to load separate PHP files in the main content div.
I have looked on some forums and they generally state to simply display a page i can use
<div id="example">
<?php include "pl_user.php" ?>
</div>
but to update the page within the div when clicking a hyperlink the best way it to use java/ajax (something i have no experience of)
I believe it should be possible to just use PHP as long as i'm wiling to refresh the page in order to do this (which i am)
I also believe in terms of copy and pasting url's for friends this is adventagious as the url will get u back to the same place? i'e the url will include pagevariable=1 subpage variable=2 etc?
if anyone could point me at a guide or give some simple instruction i'd be grateful (please bear in mind i've only ever made one site from PHP years ago so treat me as a noob.
one more point. I think there may be security issues in this method but with this site it shouldn't matter as i'm only displaying info. however any variations on the method im getting at which are more secure would also make good reading =)