#1
  1. No Profile Picture
    tursiops
    Guest
    Devshed Newbie (0 - 499 posts)
    I am building a site that has two different
    looks depending upon whether or not a certain
    plugin is installed(Macromedia Flash). Right
    now, I have two sets of pages that I would
    like to unify. What I would like to do is set
    a variable called $flash to true or false
    corresponding to whether or not the plugin is
    installed on the client side. My question is,
    how do I transmit the state of this variable
    from page to page?
  2. #2
  3. No Profile Picture
    dynamic1
    Guest
    Devshed Newbie (0 - 499 posts)
    There are a few ways to achieve this.

    1. Use a cookie to store the variable(s)

    2. Include a basic PHP script in each page to check for the plugin each time.

    3. Store a users session file on the server with the variable.

    4. You could even try and play around with the query string of the pages.
    ie - mypage.html?flash=no

    Hope this helps
  4. #3
  5. No Profile Picture
    tursiops
    Guest
    Devshed Newbie (0 - 499 posts)
    dynamic1,

    Thanks for the post. I had already considered
    those methods plus the method of setting a
    server-side environment variable. Ideally,
    what I would like to find is a technique
    similar to the form "GET" method whereby
    variables are passed in the HTTP header and
    are not exposed to the user. In the absence
    of such, I guess I will resort to cookies.
  6. #4
  7. No Profile Picture
    falcon
    Guest
    Devshed Newbie (0 - 499 posts)
    Have you thought about using the 'post' method in html forms.

    Hope this helps

    Falcon

Similar Threads

  1. pass php value of a varible to javascript variable
    By fluke_tony in forum JavaScript Development
    Replies: 1
    Last Post: February 13th, 2004, 03:34 AM
  2. php variable issue
    By durilai in forum PHP Development
    Replies: 1
    Last Post: February 9th, 2004, 09:47 PM
  3. .htaccess redirection with PHP variable
    By Avantasia in forum PHP Development
    Replies: 4
    Last Post: January 29th, 2004, 03:21 PM
  4. Windows 2003 server PHP include variable
    By sylunt1 in forum PHP Development
    Replies: 1
    Last Post: January 28th, 2004, 02:37 PM
  5. Pass Perl variable through PHP to browser?
    By dvd in forum Perl Programming
    Replies: 6
    Last Post: January 18th, 2004, 01:37 PM

IMN logo majestic logo threadwatch logo seochat tools logo