Code:
<!DOCTYPE html>
<html>
<head>

<link rel="stylesheet" type="text/css" href="style.css">
<script src="//www.parsecdn.com/js/parse-1.2.18.min.js"></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");
</script>

</head>
<body>


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

 <script>
 function sendToDB()
 {
   var msg = document.getElementById("inputField").value;
   testObject.set("SearchTable", msg);
   testObject.save();
   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”);
   queryObject.descending("createdAt");
   query.find(
   {
       success: function(results)
       {
          alert("Successfully retrieved " + results.length + " results.");
          var first = true;         
          for (var i = 0; i < results.length; i++)
          {
              var entry = results[i];
             if(first)
        {
                document.write(entry);
                first=false;
        }
   else
   {
         document.body.innerHTML = document.body.innerHTML + “\n” +                entry;
    }    
          }
        },
        error: function(error)
        {
           alert("Error: " + error.code + " " + error.message);
        }
   });
 }

</script>
<br><br></body>
</html>
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