How to run/execute form in a PHP page loaded in another using Javascript .load() without refreshing the parent PHP page?
<p>Sorry for the very long title but it's exactly what I'm looking for.</p>

<p>I have a PHP page (let's call it the parent page) that loads another (the child page) in one div with the following code:</p>

<pre><code>$("#compose_inputandoptions").load("compose_inputandoptions.php");
</code></pre>

<p>In the child page called "compose_inputandoptions.php" I have a form like this:</p>

<pre><code>&lt;?php&gt;    
echo $_POST['option'];
?&gt;
&lt;form action="" method="post"&gt;
    &lt;p&gt;
    &lt;input type="text" name="option" /&gt;
    &lt;input type="submit" value="Valider" /&gt;
    &lt;/p&gt;
&lt;/form&gt;
</code></pre>

<p>How can I obtain a value for the $_POST['option'] in the child page<br>
when I submit the form which is in the child page<br>
without refreshing the parent page?</p>

<p>Thank you very much for your help!</p>
