Re: [PHP] Inserting special characters into text fields
Maxim Maletsky wrote: >"ALT" key? I don't think so. > In MS Windows, e.g hold down the "Alt" key, on the numeric keypad press 156 then let go of the "Alt" key and you have the British pound sign (£). This is with the UK keyboard layout. Its been there since the days of DOS and works for all ASCII codes. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Inserting special characters into text fields
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Monday 14 October 2002 09:44 am, Maxim Maletsky scribbled: > On Mon, 14 Oct 2002 14:25:09 +0100 > > Chris Hewitt <[EMAIL PROTECTED]> wrote: > > Phil Schwarzmann wrote: > > >I need users to be able to insert special characters (ö and ä) into a > > >text field. > > > > > >Unfortunately, English-speaking people do not have these keys on their > > >keyboards. Currently, they are cutting and pasting these characters > > >into the text boxes. > > > > > >I believe ASP can insert characters into text fields by pressing a form > > >buttoncan PHP do something like this? > > > > Nothing to do with the language used on a server, everything to do with > > the operating system the client uses. If your client computer runs MS > > Windows, holding down the "Alt" > > "ALT" key? I don't think so. Yes, the ALT + ASCII number does work on windoze. Try ALT + 0191. > The only way to type other language's characters is by switch the > keyboard layout (ALT-SHIFT, usually) so your keyboard inputs the ASCII > mapped to your keys. That's the only way. And, anyhow, it has nothing to > do with PHP at that point. It's client-side. > > Maxim Maletsky. > > > key and pressing the ASCII number for > > the character wanted on the digits on the number pad will give the > > character. I'm afraid I don't know the equivalent if your client > > computers run linux (I'm sure there is one and its just my ignorance). > > I'd be interested to know the answer. > > > > HTH > > Chris > > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, visit: http://www.php.net/unsub.php - -- ~Paul Nicholson Design Specialist @ WebPower Design "The webthe way you want it!" [EMAIL PROTECTED] "It said uses Windows 98 or better, so I loaded Linux!" Registered Linux User #183202 using Register Linux System # 81891 -BEGIN PGP SIGNATURE- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE9qs8yDyXNIUN3+UQRAlVaAJ4hWKt7bO/X2fjci0+IC5nkkwBDNQCgkrB8 hgojoDyfvQH6w5WoKfNIgqE= =dn9E -END PGP SIGNATURE- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Inserting special characters into text fields
how true! I didn't know... my Windows usage sucks :) Cheers, Maxim Maletsky ZoomStats - the power behind Web Analysis On Mon, 14 Oct 2002 23:07:53 +0900 "@ Edwin" <[EMAIL PROTECTED]> wrote: > Hello, > > On Monday, October 14, 2002 10:44 PM > Maxim Maletsky wrote: > > [snip] > > "ALT" key? I don't think so. > > > > The only way to type other language's characters is by switch the > > keyboard layout (ALT-SHIFT, usually) so your keyboard inputs the > > ASCII mapped to your keys. That's the only way. And, anyhow, it > > has nothing to do with PHP at that point. It's client-side. > [/snip] > > "ALT" key? Yes. Try it. ;) > > Press and hold the ALT key then type 97 (on the 10-key), release the > ALT key and it'll produce the small letter "a". Do the same for letter "b" > by pressing 98 and so on. > > But of course, this has nothing to do with PHP. (And besides, you need > to know the ASCII codes to produce them...) > > - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Inserting special characters into text fields
Hello, On Monday, October 14, 2002 10:44 PM Maxim Maletsky wrote: [snip] > "ALT" key? I don't think so. > > The only way to type other language's characters is by switch the > keyboard layout (ALT-SHIFT, usually) so your keyboard inputs the > ASCII mapped to your keys. That's the only way. And, anyhow, it > has nothing to do with PHP at that point. It's client-side. [/snip] "ALT" key? Yes. Try it. ;) Press and hold the ALT key then type 97 (on the 10-key), release the ALT key and it'll produce the small letter "a". Do the same for letter "b" by pressing 98 and so on. But of course, this has nothing to do with PHP. (And besides, you need to know the ASCII codes to produce them...) - E -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Inserting special characters into text fields
On Mon, 14 Oct 2002 14:25:09 +0100 Chris Hewitt <[EMAIL PROTECTED]> wrote: > Phil Schwarzmann wrote: > > >I need users to be able to insert special characters (ö and ä) into a > >text field. > > > >Unfortunately, English-speaking people do not have these keys on their > >keyboards. Currently, they are cutting and pasting these characters > >into the text boxes. > > > >I believe ASP can insert characters into text fields by pressing a form > >buttoncan PHP do something like this? > > > Nothing to do with the language used on a server, everything to do with > the operating system the client uses. If your client computer runs MS > Windows, holding down the "Alt" "ALT" key? I don't think so. The only way to type other language's characters is by switch the keyboard layout (ALT-SHIFT, usually) so your keyboard inputs the ASCII mapped to your keys. That's the only way. And, anyhow, it has nothing to do with PHP at that point. It's client-side. Maxim Maletsky. > key and pressing the ASCII number for > the character wanted on the digits on the number pad will give the > character. I'm afraid I don't know the equivalent if your client > computers run linux (I'm sure there is one and its just my ignorance). > I'd be interested to know the answer. > > HTH > Chris > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > -- Maxim Maletsky [EMAIL PROTECTED] www.PHPBeginner.com // where PHP Begins -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Inserting special characters into text fields
Well, in Linux (if you're using X) we have "key bindings" and "dead keys", that allow you to create combinations of keypresses that are translated into special characters. For example, since I sometimes write in Italian and need accented letters, I have programmed my X so that if I press the left Windows key and then a vowel I get the acute accented version of that vowel. Same thing with the right Windows key, except that it produces grave accents. I only use the Windows keys because I have a MS natural keyboard and those two keys are pretty much useless on Linux, so they come in handy as "dead" keys. Hope this explains--it's the thirteen seconds version :-) On Mon, 2002-10-14 at 09:25, Chris Hewitt wrote: > Phil Schwarzmann wrote: > > >I need users to be able to insert special characters (ö and ä) into a > >text field. > > > >Unfortunately, English-speaking people do not have these keys on their > >keyboards. Currently, they are cutting and pasting these characters > >into the text boxes. > > > >I believe ASP can insert characters into text fields by pressing a form > >buttoncan PHP do something like this? > > > Nothing to do with the language used on a server, everything to do with > the operating system the client uses. If your client computer runs MS > Windows, holding down the "Alt" key and pressing the ASCII number for > the character wanted on the digits on the number pad will give the > character. I'm afraid I don't know the equivalent if your client > computers run linux (I'm sure there is one and its just my ignorance). > I'd be interested to know the answer. > > HTH > Chris > > > > -- > 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
Re: [PHP] Inserting special characters into text fields
Phil Schwarzmann wrote: >I need users to be able to insert special characters (ö and ä) into a >text field. > >Unfortunately, English-speaking people do not have these keys on their >keyboards. Currently, they are cutting and pasting these characters >into the text boxes. > >I believe ASP can insert characters into text fields by pressing a form >buttoncan PHP do something like this? > Nothing to do with the language used on a server, everything to do with the operating system the client uses. If your client computer runs MS Windows, holding down the "Alt" key and pressing the ASCII number for the character wanted on the digits on the number pad will give the character. I'm afraid I don't know the equivalent if your client computers run linux (I'm sure there is one and its just my ignorance). I'd be interested to know the answer. HTH Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Inserting special characters into text fields
That's client side, so it doesn't really matter what server-side scripting language you use. You could write a javascript script that inserts a value into a field: function insertval(field, value) { document.all(field).value = document.all(field).value + value; } ... Note that this example, which places an o with umlaut (I'm using one of those English keyboards that don't have special characters and, since I'm of Italian origin, I never bothered to create the binding on my keyboard for umlauts) in a text field, probably won't work, since I'm doing this by memory and have probably left something out (I'm cooking our Thanksgiving dinner and I need a break!), but hopefully it should give enough of an idea to get going. Marco On Mon, 2002-10-14 at 08:27, Phil Schwarzmann wrote: > I need users to be able to insert special characters (ö and ä) into a > text field. > > Unfortunately, English-speaking people do not have these keys on their > keyboards. Currently, they are cutting and pasting these characters > into the text boxes. > > I believe ASP can insert characters into text fields by pressing a form > button .can PHP do something like this? > > Thanks!! > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php