...

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



LJackson
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?

thanks
Luke

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


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

LJackson
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!

LJackson
08-26-2009, 02:48 PM
thanks



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum