Home >Backend Development >PHP Problem >How to jump to input page number in php

How to jump to input page number in php

藏色散人
藏色散人Original
2021-02-23 09:47:063198browse

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.

How to jump to input page number in php

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:

How to jump to input page number in php

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

How to jump to input page number in php

2.js gets the number of input pages, and then splices the jump address

How to jump to input page number in php

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn