I'm a beginner programmer that wants to create a basic search bar that searches my Sequel database. So far I created a search bar in my HTML document: (I'm using Materialize)
<nav>
<div class="nav-wrapper">
<form method="post">
<div class="input-field">
<div class="valign-wrapper">
<div class="valign" style="width:100%;">
<input type="text" name="search" placeholder="Search" required>
<label for="search"><i class="mdi-action-search"></i></label>
<input type="submit" value="Search"/>
</div>
</div>
</div>
</form>
</div>
</nav>
I want to have it so this search bar will search my database and then display the information instantly below on the same page. I have searched online and found that one can do this through using PHP. Is there any other way of creating this search bar other than using a PHP document?
If not, I looked under the PHP documentation to try and download it. How can I download it using a Mac and Terminal? Then where within a RubyMine project would my PHP document go within (a public
directory, views
directory, etc)?