Forum Moderators: coopster

Message Too Old, No Replies

Recognise users location and adjust keyboard settings?

         

hells

9:28 am on Apr 19, 2007 (gmt 0)

10+ Year Member



I've made a flash site and have incorporated it into a php page (for several unrealated reasons!)

However the contact form (that works with html) is not allowing me to input @ sign with a UK keyboard and recognises it as " like a US keyboard in firefox but works with IE. Is there a way to detect what keyboard a user has and adjust settings? or any known fix for this with firefox?

I found the PHP script below posted in this forum a few years ago is there a way I can edit this for what I want to achieve?

<?phpRecognise users
if (strpos($_SERVER["HTTP_ACCEPT_LANGUAGE"], 'en-gb')!== FALSE) {
include 'gb-aff-code.inc'; // include for GB customers
}
else {
include 'us-aff-code.inc'; // include for the others
}?>

Many thanks for any help I am new to PHP so please explain the basics if you can help!

Cheers

helen

eelixduppy

2:29 am on Apr 20, 2007 (gmt 0)



Welcome to WebmasterWorld, Helen!

The code you posted should do what you want, however, I'm not sure it's entirely necessary. If I understand you correctly, you cannot key in '@' with certain keyboards in firefox? I have not heard of this before, but maybe you want to post in the html and browsers [webmasterworld.com] forum to see if there is a fix to the problem.

Best of luck!

hells

7:37 am on Apr 20, 2007 (gmt 0)

10+ Year Member



Many thanks for your reply I will try the html and browsers forum, its a very strange problem!