This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes using the value of a session variable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "using the value of a session variable" Watch "using the value of a session variable" New topic
Author

using the value of a session variable

rrn rose
Greenhorn

Joined: Apr 14, 2009
Posts: 10
in my website (php , htm l , sql)
i have used the following php code to derive the basename of page



if i am on the page www.test.com/index.php $_SESSION['page'] has the value index.php.

i want to use that value in the '----------- ' html code shown below


how can i do that?
please help
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15385
    
    6
How would you write out a php variable to the page? You would do the same thing with php. Write it to the page.

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 63232
    
  69

"rrn rose", please check your private messages for an important administrative matter.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Have you checked out Aspose?
 
subject: using the value of a session variable
 
jQuery in Action, 3rd edition