Compiling PHP will inevitably lead to errors. In fact, it is not difficult to solve the problem. The most difficult solution is to have a blank page. Let's think about it. if an error occurs when writing PHP, you can correct it according to the error prompt. If PHP does not show you anything, isn't it difficult for the author? The following errors may occur when you write PHP. In fact, it is not difficult to solve the problem. The most difficult solution is to have a blank page. Let's think about it. if an error occurs when writing PHP, you can correct it according to the error prompt. If PHP does not show you anything, isn't it difficult for the author? Next, I will summarize the solutions and causes for the blank pages of PHP when writing PHP. Of course, I am not very good at writing PHP, so if there is an error, please do not hesitate to point it out.
1. The action is not defined.: Let's take a look at the following code:
You can understand this code, that is, if the $ action variable is empty, set it to 1, and then determine the value of the $ action variable to make different events. Of course, what will PHP do if $ action is neither 1 nor 2 ??
Permanent link:
Reprint at will! Include the article address.