<!DOCTYPE html>

<link rel="stylesheet" type="text/css" href="style.css">
<script src="//"></script>
<script type="text/javascript">
   Parse.initialize("blahblahblah", "blahblahblah");
   var TestObject = Parse.Object.extend("MainTable");
   var testObject = new TestObject();
   var SearchObject = Parse.Object.extend("SearchTable");


<div align="center" >
<img src="logo.jpg" width="293" height="195"/><br/>
<textarea type="text" id="inputField"></textarea>
By clicking Submit you are a <a href="door.htm">door</a>.<br>
<button id="submit" onclick="sendToDB()">Submit</button>
<input type="text" id="searchInput">
<button id="submit" onclick="queryPostData">Submit</button>

 function sendToDB()
   var msg = document.getElementById("inputField").value;
   testObject.set("SearchTable", msg);;
   document.getElementById("inputField").value = "";
alert("It Works!");
location = "landing.htm";

 function queryPostData()
   var msg = document.getElementId("searchInput").value;
   var queryObj = new Parse.Query(SearchObject);
   queryObj.matches(“SearchInput”, msg, “i”);
       success: function(results)
          alert("Successfully retrieved " + results.length + " results.");
          var first = true;         
          for (var i = 0; i < results.length; i++)
              var entry = results[i];
         document.body.innerHTML = document.body.innerHTML + “\n” +                entry;
        error: function(error)
           alert("Error: " + error.code + " " + error.message);

we want to have a text box where when you click submit it submits the data into a Parse table. We got that to work, but now we're trying to add a search function to pull the information from Parse. I'm not sure how to make a search box that once I type in a text and click search, it searches through a Parse table and open a new page with the result.
Thank you so much