title: Search Text Files with PHP from User Input
body: <p>Looking for a solution to search through a list of Zip Codes. I have a text file with a bunch of zip codes that we service. Would like to have a form on the website asking for the user to input their zip code to see if we service that area. If it does, display a message saying that we do, if not, saying that we don't. Thought PHP would be the best solution for my problem, but I'm a total noob when it comes to that. </p>
  
  <p>I have my form set up, I'm just not sure how to search the text file and display the answer in another div?</p>
  
  <pre><code>&lt;form action="zipcode.php" method="post"&gt;
  &lt;input type="text" name="search" /&gt;
  &lt;input type="submit" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>UPDATE: Preferably an AJAX solution! </p>