The realization method of php header Jump transfer value
This article mainly explains "the realization method of php header jump transfer value", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next, let the editor take you to learn "the realization method of php header jump transfer value"!
This article operating environment: windows7 system, PHP7.1 version, Dell G3 computer.
How does php header jump to transfer values?
PHP Header jumps and passes Post data
We sometimes need to do some link redirection in PHP, often in the following ways:
Header ("Location: $url")
However, this method can not satisfy the jump when post data to the target link, one solution is to output a HTML page containing the form, and simulate the Post jump by submitting the form through JS on the page.