The Undefined variable error occurs most of the source code downloaded from the Internet. In general, php does not need to define variables. However, if the server reports any error, an error will occur. Therefore, this error should be blocked on the server. The Undefined variable error occurs most of the source code downloaded from the Internet. In general, php does not need to define variables. However, if the server reports any error, an error will occur. Therefore, this error should be blocked on the server. Notice: Undefined variable: email in D: \ PHP5 \ ENOTE \ ADDNOTE. PHP on line 9 Notice: Undefined variable: subject in D: \ PHP5 \ ENOTE \ ADDNOTE. PHP on line 9 Notice: Undefined variable: comment in D: \ PHP5 \ ENOTE \ ADDNOTE. PHP on line 9 ........ In fact, the above is the undefined variable, and we will directly judge the code of the variable. Php does not need to define variables, but what should I do in this case? Find the php. ini file in C: \ WINDOWS. In php. ini, change error_reporting = E_ALL to error_reporting = E_ALL &~ E_NOTICE: restart apache2.2. Solution: modify php. ini and change error_reporting = E_ALL to error_reporting = E_ALL &~ E_NOTICE If you do not want to display any errors, modify display_errors = Off. if you do not have the permission to modify php. ini, add "ini_set (" error_reporting "," E_ALL & ~ "to the php header &~ E_NOTICE "); |