v0.0.7 Try to get ajax to work with backend
This commit is contained in:
+6
-5
@@ -33,11 +33,11 @@ use Backend\Model\Post;
|
||||
<a href="../Backend/controller/logout.php">Log ud</a>
|
||||
<hr>
|
||||
<p>Opret post</p>
|
||||
<form action="../Backend/controller/upload.php" method="POST">
|
||||
<input type="text" name="title">
|
||||
<input type="text" name="description">
|
||||
<input type="submit" name="createPost" placeholder="Opret">
|
||||
</form>
|
||||
<!--<form action="../Backend/controller/upload.php" method="POST">-->
|
||||
<input type="text" id="title" name="title">
|
||||
<input type="text" id="description" name="description">
|
||||
<button id="submit" name="createPost">Opret opslag</button>
|
||||
<!-- </form>-->
|
||||
<hr>
|
||||
|
||||
|
||||
@@ -45,6 +45,7 @@ use Backend\Model\Post;
|
||||
|
||||
<script src="Assets/Ajax/deletePost.js"></script>
|
||||
<script src="Assets/Ajax/fetchAndDisplayData.js"></script>
|
||||
<script src="Assets/Ajax/createPost.js"></script>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user