Accessibility in PHP

I want to implement hot keys in my website for accessibility reasons. How can I add hot keys using php code?
krutarth941Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

PanicXCommented:
Hotkeys would be a client side function and only available in Javascript, Java, Flash or AJAX
0
MichaelT_Commented:
You can use the html "accesskey" attribute <a href="index.php" accesskey="1">Home</a>
0
mattibuttCommented:
Php is a server side language you need to use javascript
0
MXProCommented:

If you are asking if you can have PHP respond to the key mapping then the answer is no. By the time that you see the webpage PHP has already performed all the work that it is going to. PHP is stateless therefore and cannot respond to changes in state.

The posts above are correct although they might have been a little more descriptive. There are several ways that PHP can help here, but essentiallly the client side scripting using DOM is pretty much the only way to do this. This means for the most part JavaScript, however VBScrips and some others could be used as well. BTW: Ajax is a form of JavaScript, Flash allows you to place a Flash Object which can have interactive controls that again use a Scripting Language called Action Script but will not respond to HTML Controls.

Remember all PHP will do for you here is generate the script code that appears in your web page when you view the source.


0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
krutarth941Author Commented:
It was helpful
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.