New folder structure
This commit is contained in:
@@ -6,8 +6,8 @@
|
||||
|
||||
<title>Guest Book</title>
|
||||
|
||||
<script src="formValidation.js"></script>
|
||||
<script src="textarea.js"></script>
|
||||
<script src="./js/formValidation.js"></script>
|
||||
<script src="./js/textarea.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -22,7 +22,7 @@
|
||||
$errors = $_SESSION["error"] ?? [];
|
||||
$_SESSION["error"] = [];
|
||||
|
||||
$string = file_get_contents("data.json") ?? "[]";
|
||||
$string = file_get_contents("./data/data.json") ?? "[]";
|
||||
$json = array_reverse(json_decode($string));
|
||||
|
||||
if (isset($_GET["p"]) && !is_numeric($_GET["p"])) {
|
||||
|
||||
Reference in New Issue
Block a user