title: Get sum with php
body: <p>I have following codes</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;title&gt;Javascript function &lt;/title&gt;
  
      &lt;style type="text/css"&gt;
      .box
      {
          width:400px;
          background-color:#F0F8FF;
      }
  
      h4
      {
          color:#09F
      }
  
      &lt;/style&gt;
  
  &lt;script type="text/javascript"&gt;
  function hello(){
  var xx=eval(form1.text1.value);
  var yy=eval(form1.text2.value);
  form1.text3.value=xx+yy
  }
  &lt;/script&gt;
  
    &lt;/head&gt;
      &lt;body onLoad="form1.text1.focus()"&gt;  
      &lt;center&gt;
      &lt;div class="box"&gt;
      &lt;h1 style="color:#2c80d3 "&gt;Javascript Function&lt;/h1&gt;
      &lt;table border="0" cellspacing="1" cellpadding="1" width="25%"&gt; 
          &lt;form name="form1" action="textboxes.php" method="Post"&gt;
      &lt;tr&gt;&lt;td&gt; First&lt;/d&gt;&lt;td width="20px"&gt;&lt;input type="text" name="text1"  value=""&gt;&lt;/td&gt;&lt;/tr&gt;
        &lt;tr&gt;&lt;td&gt; Second&lt;/d&gt;&lt;td&gt;&lt;input type="text" name="text2"  value="" onBlur="hello()"&gt;&lt;/td&gt;&lt;/tr&gt;
       &lt;tr&gt;&lt;td&gt; Result&lt;/d&gt;&lt;td&gt;&lt;input type="text" name="text3"  value="" disabled=""&gt;&lt;/td&gt;&lt;/tr&gt;
      &lt;/form&gt;
      &lt;/table&gt;
      &lt;h4&gt;Enter any digit in text1 and text2 and see result in text3&lt;/h4&gt;
  
          &lt;h4&gt;Is it possible to do above with php without submitting FORM?&lt;/h4&gt;
  
      &lt;/div&gt;
      &lt;/center&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>No problem, It works fine.
  I used java script to sum two numbers.
  Is it possible to add two numbers with php without using any submit button?</p>
  
  <p>If yes then please guide me.</p>
  
  <p><a href="http://i41.tinypic.com/2rfev7m.jpg" rel="nofollow">http://i41.tinypic.com/2rfev7m.jpg</a> </p>