I'll get the error
Notice: Undefined index: page in C:\xampp\htdocs\ajaxx\load_page.php on line 3
This is my full code:
<?php
if(!$_POST['page']) die("0");
$page = $_POST['page'];
if(file_exists('pages/page_'.$page.'.html'))
echo file_get_contents('pages/page_'.$page.'.html');
else echo 'There is no such page!';
?>
It was working yesterday but all of a sudden it gives me this error. The full code is downloaded from A simple AJAX website with jQuery