$_REQUEST problems in Firefox...
Posted: Fri May 15, 2009 1:11 am
Hi there,
Please don't flame me, I'm a PHP n00b, but not a web n00b, admittedly, I'm also a forum n00b - I've refrained for years and years and years, so consider my posting epic, and very special indeed.
I have an issue, where, in Firefox (3.0.10) my conditional for isset() is always producing a result of 1. In IE8 (lol) it works as I'd expect. Haven't backwards IE tested it yet, because quite frankly it's just becoming a chore when it comes to basic stuff like this, so I'm throwing it at those of you with spare time instead.
Scenario:
$layout = ( isset( $_REQUEST['layout'] ) )? 'alt' : 'flash' ;
When I go to my test url: http://www.codefinger.co.nz/_etc/nu/index.php in FF3, I always see the 'alt' layout and never the 'flash' layout. You'll see in the echo output that $layout is indeed set to 'alt', and isset() is always 1, even with no querystring appended to the url.
When testing in my default install of the latest WAMP, localhost works as I'd expect, 'flash' layout when nothing/invalid is defined, 'alt' when 'alt' is defined. IE8 works the same as localhost does (even though localhost doesn't load in IE since I upgraded, *snicker*).
I'm about to send an email to my host, though deep down I know its my fault somehow. If anyone can correct me, well then thank you in advance. If I hear nout, or I get flamed, then I'll most likely resume my years and years of ignoring the existence of forums.
I've zipped up the current build of my stuff, it's attached (minus the YUI directory; tooltip won't work) - have at it, there should be nothing complex in there.
thanks people,
Danjah
Please don't flame me, I'm a PHP n00b, but not a web n00b, admittedly, I'm also a forum n00b - I've refrained for years and years and years, so consider my posting epic, and very special indeed.
I have an issue, where, in Firefox (3.0.10) my conditional for isset() is always producing a result of 1. In IE8 (lol) it works as I'd expect. Haven't backwards IE tested it yet, because quite frankly it's just becoming a chore when it comes to basic stuff like this, so I'm throwing it at those of you with spare time instead.
Scenario:
$layout = ( isset( $_REQUEST['layout'] ) )? 'alt' : 'flash' ;
When I go to my test url: http://www.codefinger.co.nz/_etc/nu/index.php in FF3, I always see the 'alt' layout and never the 'flash' layout. You'll see in the echo output that $layout is indeed set to 'alt', and isset() is always 1, even with no querystring appended to the url.
When testing in my default install of the latest WAMP, localhost works as I'd expect, 'flash' layout when nothing/invalid is defined, 'alt' when 'alt' is defined. IE8 works the same as localhost does (even though localhost doesn't load in IE since I upgraded, *snicker*).
I'm about to send an email to my host, though deep down I know its my fault somehow. If anyone can correct me, well then thank you in advance. If I hear nout, or I get flamed, then I'll most likely resume my years and years of ignoring the existence of forums.
I've zipped up the current build of my stuff, it's attached (minus the YUI directory; tooltip won't work) - have at it, there should be nothing complex in there.
thanks people,
Danjah