Jump to content

Server Sides Includes in PHP


straygrey

Recommended Posts

I am using $_SESSION["usrname"]=$_POST["username"] construct to set $_SESSION variables.
My question is that the SSI variables are not getting displayed in php scripts and the $_SESSION data is not appearing in shtml even though I am attempting to use php within the shtml to retrieve same.
The $_SESSION data works fine in php scripts called *.php and the server side includes(SSI) works fine in shtml pages called *.shtml but not vice versa.....:-(

What have I forgotten to do to get both php and shtml to work the way I want?
Link to comment
https://forums.phpfreaks.com/topic/22858-server-sides-includes-in-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.