File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring 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

using the value of a session variable

rrn rose

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 $_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

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

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63542

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

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: using the value of a session variable
It's not a secret anymore!