thewhistler1
Technical User
On my website I use paging so that all the results don't hit the page all at once. Then of coarse I have links to take you to the next set of results. What I would like to do is make the right and left arrow buttons on the keyboard work to go forward and backward to other pages of results. I use PHP and I believe that I would need to use Javascript to accomplish this. I am trying to understand javascript but so far I am not having too much luck. I found some pieces of code online that watch for keystrokes from the keyboard but have found nothing that will then do what I want to do. Here is the part of my code that will take you to the next page of result when pressed with the mouse.
As you can see the link to go to the next page uses PHP so putting the URL in the head is not the best solution for me since it is a variable address link.
But how to make a the left arrow button to do that same thing as clicking on this link is the hard part for me since I really am not that familiar with Javascript.
Any suggestions would be greatly appreciated.
Code:
<a href='index.php?content=movieinfo&id=<?php echo $next;?>NEXT</a>
As you can see the link to go to the next page uses PHP so putting the URL in the head is not the best solution for me since it is a variable address link.
But how to make a the left arrow button to do that same thing as clicking on this link is the hard part for me since I really am not that familiar with Javascript.
Any suggestions would be greatly appreciated.