title: Post Back response from PHP to javascript
body: <p>I'm new to forms and post data ... so I don't know how solve this problem!</p>
  
  <p>I've a php page (page1) with a simple form:</p>
  
  <pre><code>&lt;form method="post" action="/page2.php"&gt;
  &lt;input type="search" value="E-Mail Address" size="30" name="email" /&gt;
  &lt;input type="submit" value="Find E-Mail" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>How you can notice ... this form post the 'email' value to the page2. In the page2 there is a small script that lookup in a database to check if the email address exist.</p>
  
  <pre><code>$email = $_POST['email'];
  
  $resut = mysql_query("SELECT * FROM table WHERE email = $email");
  .   
  .
  .
  /* do something */
  .
  .
  .
  
  if($result){
      //post back yes
  }
  else{
     //post back no
  }
  </code></pre>
  
  <p>I don't know how make the post back in php! And how can I do to the post back data are read from a javascript method that shows an alert reporting the result of the search?</p>
  
  <p>This is only an example of what I'm trying to do, because my page2 make some other actions before the post back.</p>
  
  <p>When I click on the submit button, I'm trying to animate a spinning indicator ... this is the reason that I need to post back to a javascript method! Because the javascript function should stop the animation and pop up the alert with the result of the search!</p>
  
  <p>Very thanks in advance!</p>