Home >Backend Development >PHP Problem >How to jump to input page number in php
php method to implement jump by input page number: 1. Add the jump html code in the paging class, and add an onclick event; 2. Get the input page number through js, and splice the jump address. Can.
The operating environment of this article: Windows 7 system, PHP8, Dell G3 computer.
PHP paging input page jump
Today I encountered the function of adding paging jump, the effect is as follows:
The implementation is as follows:
1. Add the jump html code in the paging class, and add an onclick event, and pass the URL of the current page to the jump() method
2.js gets the number of input pages, and then splices the jump address
Then the jump can be realized.
Recommended: "PHP Video Tutorial"
The above is the detailed content of How to jump to input page number in php. For more information, please follow other related articles on the PHP Chinese website!