www.webdeveloper.com
Results 1 to 3 of 3

Thread: Read Cookie and Pass value in URL

Hybrid View

  1. #1
    Join Date
    Dec 2004
    Posts
    75

    Read Cookie and Pass value in URL

    I have a page where I need to read a cookie and pass it's value in my href.
    The cookie name is 'psid' and I can see it's value from the browser when l am on the page.
    What is the best way to do this?

    Here is the sample href:

    <li><a href="http://76.28.121.192:7777/pls/apex/f?p=100:1:8884183468417"
    title="My Custom reports)."
    target="_blank">Reports <span style="color:#339933;">. *Custom*</span> </li>

  2. #2
    Join Date
    Mar 2007
    Location
    U.K.
    Posts
    1,127
    Are you saying that in the event that the cookie exists, its value
    should replace the default value of the 'p' parameter in the link?
    Where used, return should be executed unconditionally and always as the last statement in the function.

    That's my signature, it's not part of the damn post!

  3. #3
    Join Date
    Dec 2004
    Posts
    75
    No. I am just looking for the proper syntax to read a cookie from the HTML page.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles