Re: IE Problem Detecting Post Variables
| From: | Ashley Sheridan | Date: | Thu, 01 Jan 2009 18:06:29 +0000 |
| Subject: | Re: IE Problem Detecting Post Variables | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-285358@lists.php.net to get a copy of this message | ||
On Thu, 2009-01-01 at 12:57 -0500, Bastien Koert wrote:
> On Thu, Jan 1, 2009 at 11:59 AM, Ashley Sheridan
> <ash@ashleysheridan.co.uk>wrote:
>
> > On Thu, 2009-01-01 at 11:25 -0500, Phpster wrote:
> > > What about using the onclick to set a js variable to be sent to the
> > > server? That should be more cross server compliant.
> > >
> > > Bastien
> > >
> > > Sent from my iPod
> > >
> > > On Dec 31, 2008, at 8:37 PM, "L. Herbert" <lherbert@iluvmydesign.com>
> > > wrote:
> > >
> > > > Bastien,
> > > >
> > > > Thanks for your response. The curious thing is that the value is
> > > > passed when using FF, but not passed when using IE.
> > > >
> > > > Here is the relevant form html:
> > > >
> > > > <div id="switch-theme">
> > > > <form action="" method="post">
> > > > <label>Flip It!</label>
> > > > <input name="style" type="image"
> > > > src="images/
> > > > switch-button-grey.gif" title="Default Theme"
> > > > id="style1"
> > > > value="default" />
> > > > <input name="style" type="image"
> > > > src="himages/
> > > > switch-button-default.gif" title="Alternate Theme"
> > > > id="style2"
> > > > value="alternate" />
> > > > </form>
> > > > </div>
> > > >
> > > > The action attribute is left blank so the form posts to the current
> > > > page. The theme switcher script is at the top of each page and
> > > > intercepts the posted variables.
> > > >
> > > > Any thoughts?
> > > >
> > > >
> > > > On Dec 31, 2008, at 11:02 AM, Phpster wrote:
> > > >
> > > >> Try checking to see if the value was passed with var_dump($_REQUEST)
> > > >>
> > > >> Also try (!empty($_REQUEST['style']))
> > > >>
> > > >>
> > > >> Bastien
> > > >>
> > > >> Sent from my iPod
> > > >>
> > > >> On Dec 31, 2008, at 10:24 AM, "L. Herbert"
> > > >> <lherbert@iluvmydesign.com> wrote:
> > > >>
> > > >>> Hello all,
> > > >>>
> > > >>> Anyone have insight to share on the following issue:
> > > >>>
> > > >>> I have a simple theme switcher script that functions as expected
> > > >>> in FF, Safari, etc. but does not work in IE 6 or 7. It appears
> > > >>> that the posted form variables are not detected in IE. I am
> > > >>> using the following check within the script:
> > > >>>
> > > >>> if(isset($_REQUEST['style'])) {
> > > >>>
> > > >>> $style = $_REQUEST['style'];
> > > >>> }
> > > >>>
> > > >>> Thanks in advance for your assistance.
> > > >>>
> > > >>> --
> > > >>> PHP General Mailing List (http://www.php.net/)
> > > >>> To unsubscribe, visit:
> > > >>> http://www.php.net/unsub.php
> > > >>>
> > > >>
> > > >> --
> > > >> PHP General Mailing List (http://www.php.net/)
> > > >> To unsubscribe, visit: http://www.php.net/unsub.phpÓ©w¤
> > > >> Ê
ªÃ³€«¦§ˆ
> > > >>
> > > >
> > >
> > Which would make it as non-accessibility-friendly as possible...
> >
> >
> > Ash
> > www.ashleysheridan.co.uk
> >
> >
> There are always trade-offs
>
for me, losing accessibility at the expense of some work to fix the
problem is not a trade-off at all. I'd always go for accessibility
first.
Ash
www.ashleysheridan.co.uk