Re: <textarea> & tabs
| From: | Christian | Date: | Wed, 09 Aug 2000 01:04:03 +0000 |
| Subject: | Re: <textarea> & tabs | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-10814@lists.php.net to get a copy of this message | ||
Thanks,
But I think you may have missed the point of my problem ...
I'm not concern with the navigation within the form ..
Assume that everything is entered correctly into the form before
submittal ...
The problem arises when a tab character follows a word in the AA field
..
eg. you enter 'Apple' followed by a tab
(focus does not change - it's a textarea)
BB still contains Banana, CC orange etc which is correct !!
For some reason everything ends up being shifted
in the HTTP_POST_VARS array ...
The contents of BB gets allocated to CC, CC to DD etc ..
It seems like a bug to me ...
Can anyone shed some light ?
> > Hi all,
> >
> > I have a form that contains some text area inputs ..
> > eg.
> >
> > <textarea rows="2" name="AA"
> > cols="35"></textarea>
> > <input type="text" name="BB" size="21">
> > <textarea rows="2" name="CC"
> > cols="35"></textarea>
> >
> > I have found that when the user types in
> > a word into the AA field followed by a tab
> > the content of BB get pushed to CC leaving BB blank :-/
> >
> > eg.
> >
> > enter: Apple{\t tab} Banana Orange
> >
> > $HTTP_POST_VARS[AA] -> 'Apple'
> > $HTTP_POST_VARS[BB] -> ''
> > $HTTP_POST_VARS[CC] -> 'Banana'
> >
> > enter with out the tab
> >
> > $HTTP_POST_VARS[AA] -> 'Apple'
> > $HTTP_POST_VARS[BB] -> 'Banana'
> > $HTTP_POST_VARS[CC] -> 'Orange'
> >
> >
> > Why is this so ?
> > Is it a PHP or GGI thing ?
> > And of course what's the easiest way to overcome this ?
> >
> > Thanks heaps,
> > Christian
>
> This is a 'window manager' thing :-) In general, the tab key is used to
> move focus between entry points (text boxes, buttons etc); the keystroke
> is intercepted and acted on by the window manager and never gets to the
> form. So if you were in textarea aa and enter something, it shows up in
> aa. Then you click into the textbox bb and press <TAB> and you'll see
> the focus shift to cc.