how to make a form tag disappear after clicking submit
<p>I want to make this form tag disappear after i hit the submit button.
I tried using "formaction" but it doesn't let me add my data to database. I am thinking of using JavaScript but have no idea how to make this form disappear. </p>

<pre><code>&lt;form id ='eventdetail' name='eventform' method='POST' action="&lt;?php $_SERVER['PHP_SELF']; ?&gt;?month=&lt;?php echo $month;?&gt;&amp;day=&lt;?php echo $day;?&gt;&amp;year=&lt;?php echo $year; ?&gt;&amp;v=true&amp;add=true"&gt;
    &lt;table width='400px' border='0'&gt;
        &lt;tr&gt;
            &lt;td width='150px'&gt;Date&lt;/td&gt;
            &lt;td width='250px'&gt;&lt;input type='text' name='txttitle' value ='&lt;?php echo $month?&gt;/&lt;?php echo $day?&gt;/&lt;?php echo $year?&gt;'&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td width='150px'&gt;Title&lt;/td&gt;
            &lt;td width='250px'&gt;&lt;input type='text' name='txttitle'&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td width='150px'&gt;Detail&lt;/td&gt;
            &lt;td width='250px'&gt;&lt;textarea name='txtdetail'&gt;&lt;/textarea&gt;&lt;/td&gt;
        &lt;/tr&gt;
        &lt;tr&gt;
            &lt;td colspan='2' align='center'&gt;&lt;input type='submit' name='btnadd' value='Add Event'&gt;&lt;/td&gt;
        &lt;/tr&gt;
    &lt;/table&gt;
&lt;/form&gt;
</code></pre>