View Full Version : simple quote usage in a link help please.

08-26-2009, 02:21 PM
Hi all,

i am trying to get the following to work but failing lol

<a href="<?php echo '$_SESSION['page'].php'">

but because of the multi '/"s it doesnt like the above anyone know what im doing wrong?


Phil Jackson
08-26-2009, 02:25 PM
not sure what your doin but try

<a href="<?php echo $_SESSION['page'].".php"; ?>">

08-26-2009, 02:37 PM
im sure i tried that lol,

thanks for that mate its working a treat :)

ha just trying to set the link to goto a page which = the session value plus the .php at the end. :)

Phil Jackson
08-26-2009, 02:39 PM
Ah well there you go!

08-26-2009, 02:48 PM

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum