PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old November 12th, 1999, 10:27 AM
tursiops
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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?

Reply With Quote
  #2  
Old November 12th, 1999, 11:22 AM
dynamic1
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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

Reply With Quote
  #3  
Old November 12th, 1999, 12:37 PM
tursiops
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
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.

Reply With Quote
  #4  
Old November 24th, 1999, 05:42 AM
falcon
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
Have you thought about using the 'post' method in html forms.

Hope this helps

Falcon

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > PHP variable persistence

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap