adding tow events
<p>i have an form which will send some data to an php file , then return some results as example:</p>

<pre><code>&lt;form action"&lt;?php $_SERVER['PHP_SELF']?&gt;" method="post" id="data"&gt;
  &lt;input type"text" name="first_name"/&gt;
  &lt;input type="text" name="last_name"/&gt;
&lt;/form&gt;
</code></pre>

<p>then in javascript i want catch clcik event in submit form as example :</p>

<pre><code>$("#data").submit(function(){
some code .....
});
</code></pre>

<p>which that will prevent the default action for submitting inputs form to the php file , the question is can i send data of a form for php file and same time catch event for the same form ?</p>

<blockquote>
  <p>NOTE the returned data from php file will be needed by another php
  function</p>
</blockquote>
