I’m trying to create a search bar for my website. The search bar should search in a folder called reviews for html documents. You can see my code below. However, it doesn’t work. I just get the replit not found error. Could you respond with a code that works if you know and maybe an explenation if you have time.
Thank you for helping!
<form action="reviews/search.php" method="get">
<input name="a" type="text"/>
<input type="submit" value="Search"/>
Could you please provide a link to your Repl? I don’t know if you can search files using only HTML/CSS/JS. I think you need a backend, such as NodeJS or Python Flask.
@CoderElijah I think OP’s backend is PHP…
Maybe try taking off the
reviews/ in the action? Unless that’s where the
search.php is located. Otherwise just check the relative path and make sure that if the files are nested in different folders that you would go up a directory or two