mirror of
https://github.com/Floriansylvain/projet_programmation_web.git
synced 2026-08-19 11:43:16 +02:00
🎨 POST -> GET for research form
This commit is contained in:
@@ -12,11 +12,11 @@
|
||||
<body>
|
||||
<?php
|
||||
include("navbar.php");
|
||||
if (isset($_POST['author'])) {
|
||||
if (strlen($_POST['author']) < 3) {
|
||||
if (isset($_GET['author'])) {
|
||||
if (strlen($_GET['author']) < 3) {
|
||||
echo "<p class='error'>Veuillez entrer 3 caractères minimum.</p>";
|
||||
} else {
|
||||
echo "<script>requestToApi('" . $_POST['author'] . "')</script>";
|
||||
echo "<script>requestToApi('" . $_GET['author'] . "')</script>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user