how to update my hidden division data when form is submitted without reloading page
<p>i want to know javascript code that is used for dynamic update on my site...
the problem is that,i have a hidden division which contain a form (like registration form )and 
i validate this form using php.
but when i submit the form ,the page is reloaded and division is hide according to property,i want to see what is happening with form submission,i have to click again on link to show division then i m able to see about any error if occur.
i m using xmlHTTP object to do this but my division is not remain visible during form validation due to page reloading.i don't have any idea that how do visible division until complete submission of form.</p>

<p>i need whole source code,because i have code but unable to modify it according to my need.</p>
