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; PHP: 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 src="arabic.gif" border="0" /></a> HTML: how can i do that? please help