bigbikkuri
05-10-2006, 04:26 PM
I'm working on an education site for kids and I'm trying to workout how to have a user login and propagate a session and variables throughout the site.
Looking at sites like digg.com and amazon.com, everyone has a " <username>'s page " button or display with personalized info, but the page is either a .com or does not have the file extension displayed in the url.
I'm thinking in order to do this I want to call a seperate php script that has access to my SESSION array so I can make personalized links and content, and that would then echo the html code to display on the mainpage. But so far it seems to do that I need to embed php code into my page, and that means I'll need an index.php which is pretty unsightly (or at least, nobody else seems to be doing this and or hiding the fact - and I want to too).
My question is, is it possible to execute a php script from within straight xhtml? I know in the form tag there is the action attribute that can be php, but is there a way to just say "in this div, but the results of myfile.php" and have it be pure xhtml?
Looking at sites like digg.com and amazon.com, everyone has a " <username>'s page " button or display with personalized info, but the page is either a .com or does not have the file extension displayed in the url.
I'm thinking in order to do this I want to call a seperate php script that has access to my SESSION array so I can make personalized links and content, and that would then echo the html code to display on the mainpage. But so far it seems to do that I need to embed php code into my page, and that means I'll need an index.php which is pretty unsightly (or at least, nobody else seems to be doing this and or hiding the fact - and I want to too).
My question is, is it possible to execute a php script from within straight xhtml? I know in the form tag there is the action attribute that can be php, but is there a way to just say "in this div, but the results of myfile.php" and have it be pure xhtml?