The only way to cure the symptoms but not the root cause is to modify the reporting part in php.ini so that the notice does not display
error_reporting = E_ALL; display all errors, warnings and notices
to
error_reporting = E_ERROR & ~E_NOTICE & ~ E_WARNING
Otherwise
isset($_GET["page"]) makes an if-else judgment!!
----The corrected source code is as follows----
if(isset($_GET["page"]))$page=$_GET["page"];
else $page=1;