I am creating a web app in nodejs with MySQL Db. I want to pass the user input value to app.js file where it makes a search in the database with that value and display results in another page.
Here is the form i m using in index.html:
<form method="get" action="SearchResults">
<input type="text" name="zipcode" placeholder="Search with ZipCode/City..."
required style = "width: 830px; height:20px">
<input type="submit" value="Submit"></center>
</form>
I know how to make the SearchResults call using JSP and Servlets. But I am not able to understand how to make this call n Bluemix using Nodejs an MySQL. After doing some research and trying out the starter kit, I understood that the servlet related code should be put in app.js file. But I am not sure how to write the database query and how to fetch the details from database and display onto another page. Any help would be appreciated. Thanks.