title: Mootools form submit & content change
body: <p>I'd like to replace <code>my_div</code>'s content after user clicks the submit button with the output that comes from <code>my.php</code>. I want to achieve this using mootools javascript library. How can I do this?</p>
  
  <pre><code>
  &lt;div id="my_div">
  &lt;form name="myform" action="http://www.domain.com/my.php" method="POST">
  &lt;br>&lt;br>
  &lt;input type="text" size="25" value="Enter your name here!">
  &lt;br>&lt;input type="submit" value="Send me your name!">
  &lt;/div>
  </code></pre>
  
  <p>Thanks for reading.</p>