Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Senior Coder
    Join Date
    Jun 2008
    Location
    Cornwall
    Posts
    2,088
    Thanks
    296
    Thanked 12 Times in 12 Posts

    Exclamation simple quote usage in a link help please.

    Hi all,

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

    Code:
    <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

  • #2
    Senior Coder
    Join Date
    Aug 2009
    Location
    Mansfield, Nottinghamshire, UK
    Posts
    1,547
    Thanks
    57
    Thanked 148 Times in 147 Posts
    not sure what your doin but try

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

  • Users who have thanked Phil Jackson for this post:

    LJackson (08-26-2009)

  • #3
    Senior Coder
    Join Date
    Jun 2008
    Location
    Cornwall
    Posts
    2,088
    Thanks
    296
    Thanked 12 Times in 12 Posts
    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.

  • #4
    Senior Coder
    Join Date
    Aug 2009
    Location
    Mansfield, Nottinghamshire, UK
    Posts
    1,547
    Thanks
    57
    Thanked 148 Times in 147 Posts
    Ah well there you go!

  • #5
    Senior Coder
    Join Date
    Jun 2008
    Location
    Cornwall
    Posts
    2,088
    Thanks
    296
    Thanked 12 Times in 12 Posts
    thanks


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •