Ian

thanks for your info. you put me n the right track. it was the 
register_globals issue. all sorted now. you can see it in action here
http://www.soddengecko.com/test/ links at the top right

Mark...
http://www.soddengecko.com



Mark Mckee wrote:

>thanks for explaining it. i think i get it now. i will give it a go and 
>see what i can do.
>
>thanks again
>
>Mark...
>http://www.soddengecko.com
>
>
>
>Ian Bambury wrote:
>
>  
>
>>Yep.
>>
>>Unless you have register_globals set to On then from some version (
>>4.something) you can't reference post, get, or cookie variables directly
>>
>>e.g. with
>>
>>test.php?xxx=yyy
>>
>>test.php does not have $xxx, it has $_GET['xxx'] ($_GET is an associative
>>array)
>>
>>same with post and cookie data
>>
>>so in your switcher script $set is nothing as it should be $_GET['set'}
>>(sorry, should have mentioned that, but it's 3am here)
>>
>>also, once you get the cookie set properly, you have to do the same thing
>>with the cookie data i.e. $_COOKIE['sitestyle']
>>
>>Must be capitalised.
>>
>>I'm not saying that is your problem, but it is a possibility
>>
>>Ian
>>
>>
>>On 02/01/06, Mark Mckee <[EMAIL PROTECTED]> wrote:
>> 
>>
>>    
>>
>>>any chnace you could elaborate a little more on that please?
>>>
>>>Mark...
>>>http://www.soddengecko.com
>>>
>>>
>>>
>>>Ian Bambury wrote:
>>>
>>>   
>>>
>>>      
>>>
>>>>(!$_COOKIE['sitestyle'])...
>>>>
>>>>?
>>>>
>>>>
>>>>[Non-text portions of this message have been removed]
>>>>
>>>>
>>>>
>>>>Community email addresses:
>>>>Post message: [email protected]
>>>>Subscribe:    [EMAIL PROTECTED]
>>>>Unsubscribe:  [EMAIL PROTECTED]
>>>>List owner:   [EMAIL PROTECTED]
>>>>
>>>>Shortcut URL to this page:
>>>>http://groups.yahoo.com/group/php-list
>>>>Yahoo! Groups Links
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>     
>>>>
>>>>        
>>>>
>>>Community email addresses:
>>> Post message: [email protected]
>>> Subscribe:    [EMAIL PROTECTED]
>>> Unsubscribe:  [EMAIL PROTECTED]
>>> List owner:   [EMAIL PROTECTED]
>>>
>>>Shortcut URL to this page:
>>> http://groups.yahoo.com/group/php-list
>>>
>>>
>>>------------------------------
>>>YAHOO! GROUPS LINKS
>>>
>>>
>>>  -  Visit your group "php-list<http://groups.yahoo.com/group/php-list>"
>>>  on the web.
>>>
>>>  -  To unsubscribe from this group, send an email to:
>>>   [EMAIL PROTECTED]<[EMAIL PROTECTED]>
>>>
>>>  -  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>>>  Service <http://docs.yahoo.com/info/terms/>.
>>>
>>>
>>>------------------------------
>>>
>>>   
>>>
>>>      
>>>
>>[Non-text portions of this message have been removed]
>>
>>
>>
>>Community email addresses:
>> Post message: [email protected]
>> Subscribe:    [EMAIL PROTECTED]
>> Unsubscribe:  [EMAIL PROTECTED]
>> List owner:   [EMAIL PROTECTED]
>>
>>Shortcut URL to this page:
>> http://groups.yahoo.com/group/php-list 
>>Yahoo! Groups Links
>>
>>
>>
>>
>>
>>
>>
>>
>> 
>>
>>    
>>
>
>
>Community email addresses:
>  Post message: [email protected]
>  Subscribe:    [EMAIL PROTECTED]
>  Unsubscribe:  [EMAIL PROTECTED]
>  List owner:   [EMAIL PROTECTED]
>
>Shortcut URL to this page:
>  http://groups.yahoo.com/group/php-list 
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>
>
>  
>


Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to