barre de recherche

This commit is contained in:
2024-06-10 18:45:37 +02:00
parent a1b797a1c5
commit ffd3f5dd39
2 changed files with 16 additions and 15 deletions

View File

@@ -1,12 +1,15 @@
<form method="post" action="albums">
<?php
echo "<br>";
echo "<br>";
echo "<br>";
echo "<select id='GenreId' name='Genre'>";
echo "<option value='0'>Select genre</option>";
foreach($genre as $genre) {
echo "<option value='{$genre->id}'>{$genre->name}</option>";
}
echo "</select>";
echo"<form class'search-bar' action='/search' method='post'>";
echo"<form class'search-bar' action='/search' method='post'>";
echo"<input type'search' name='recherche' placeholder='Search...'>";
?>
<button type="submit">Submit</button>