How to submit a form in a shadow box?
<p>I'm using shadow box to submit a form, and since I'm new to JavaScript it's little difficult for me. I have three pages, a parent window, a child window(shadow box content) with the form and an update page to show the results. When I submit the form data in the child window, the form doesn't close and I am unable to retrieve the vales in my update page.</p>

<p>Can you please suggest me a tutorial or example that will help me to get a better idea of how to do this?</p>

<p>This is my code so far</p>

<p>// parent window(index.php)</p>

<pre><code>&lt;html&gt;
   &lt;head&gt;
    &lt;script type="text/javascript" src="jquery.min.js"&gt;&lt;/script&gt;
    &lt;link rel="stylesheet" type="text/css" href="shadowbox/shadowbox.css"&gt;
    &lt;script type="text/javascript" src="shadowbox/shadowbox.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript"&gt;
    Shadowbox.init();
    &lt;/script&gt;
   &lt;/head&gt;
  &lt;body&gt;
</code></pre>

<p>Example shaodow box</p>

<pre><code>&lt;script language="javascript"&gt;
    $('#mylink').click(function(){
        Shadowbox.open({
            content:    'mybox.php',
            player:     'iframe',
            height:     550,
            width:      800,
            options: {
                onClose: 
                    function() {
                     top.location       = "update.php";                 

                    }
            }
        });
    });
&lt;/script&gt;
</code></pre>

<p>//mybox.php</p>

<pre><code>&lt;form name="theform" action="update.php"  method="POST"&gt;
&lt;input type="text" name="nametxt" id= "nametxt"&gt;&lt;br&gt;
&lt;input type="submit" value="submit"&gt;
&lt;/form&gt;
</code></pre>

<p>//update.php</p>

<pre><code>&lt;?php
if(isset($_POST['nametxt']))
echo $_POST['nametxt'];
?&gt;
</code></pre>

<p>please consider, this is just an example.when the form is submitted data needs to be shown in update php.
can any one help, Thanks in advance</p>
