Get the App
SLTechnology News&Howtos  ›  Development  › 

How to jump after five seconds by php

Shulou Source: shulou.com Published: 2022-06-02 04:48:51 11月14日 Update

Editor to share with you how php can jump after five seconds, I believe most people don't know much about it, so share this article for your reference. I hope you can learn a lot after reading this article. Let's learn about it together.

Php to achieve five seconds after the jump method: 1, to create a success.php operation success page; 2, to create an error.php operation failure page; 3, through "playSec (5);" to achieve the jump after five seconds.

This article operating environment: Windows7 system, PHP7.1 version, Dell G3 computer.

PHP automatically jumps to a page after 5 seconds:

History.go (- 2); / / javaScript code, back two pages.

SetTimeout ("playSec (" + num+ ")", 1000); / / JavaScript code, timer, calling the playSec () function a second later.

Success.php operation success page

Error.php operation failed page

1. Success.php operation success page

The operation succeeded * {margin:0px;padding:0px;} .box {width:450px;border:1px solid # f0f0f0f 0f 0f 0f 0 } the operation succeeded

Tip:

The system will jump automatically after 3 seconds. If you don't want to wait, please click

Tags: Pages success functions timers articles systems two code content tips not much most methods more environment computer knowledge industry information information channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info vpn OPPO Reno Shulou Information macOS