A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
using the value of a session variable
Joined: Apr 14, 2009
Apr 15, 2009 04:45:57
in my website (php , htm l , sql)
i have used the following php code to derive the basename of page
session_start(); $pagename=pathinfo($_SERVER["PHP_SELF"]); $pagename=$pagename["basename"]; $_SESSION['page']=$pagename;
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
<a href="/ar/---------------"><img border="0" /></a>
how can i do that?
Joined: Nov 08, 2001
Apr 15, 2009 05:40:38
How would you write out a php variable to the page? You would do the same thing with php. Write it to the page.
Author and ninkuma
Joined: Jan 10, 2002
Apr 15, 2009 08:49:42
"rrn rose", please check your private messages for an important administrative matter.
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: using the value of a session variable
php , html ...
Page redirect question...
Need to implement Session time out in PHP code
difficulty in login in one attempt
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013