Php solves the problem of a blank page that jumps to due to incorrect input of parameters in the address bar, such as the question. For example, is there such a URL as http: // localhost: 8080/test. php? Id = 12 & amp; tie = 23 I changed the last two parameters in the address bar to a large value, for example, 100000. The result is that there is no data output on the page, or php solves the blank page jump caused by incorrect input of parameters in the address bar
As the question. For example, is there such a URL as http: // localhost: 8080/test. php? Id = 12 & tie = 23
In the address bar, I changed the following two parameters to a large value, for example, 100000. The result is that no data is output on the page, or the parameter is changed to letters or Chinese characters, there is no data output. how can I set this link to jump to the error page I specified without displaying a blank page!
------ Solution --------------------
PHP code
If ($ _ GET ['A parameter '] = 'invalid') {die ('script localtion. href = "specify the url of the error interface" script ');}
------ Solution --------------------
Header ('Location: http://www.baidu.com /');
Exit;