mirror of
https://github.com/Floriansylvain/projet_programmation_web.git
synced 2026-10-19 04:53:51 +02:00
🎨 POST -> GET for research form
This commit is contained in:
1 parent
3bd46dddef
commit
6b474438f9
2 files changed
+4
-4
No files matched your search
@@ -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