Onsubmit URL Redirection with jquery
<p>I am looking for best way to do Onsubmit URL Redirection.</p>

<p>Currently I have form like this...</p>

<pre><code>&lt;form action="dologin.php?" method="post" id="frmlogin"&gt;    
&lt;input type="hidden" value="something" /&gt;    
&lt;input type="submit" value="go" /&gt;
</code></pre>

<p>Currently this <strong>dologin.php</strong> is directing me to <strong>clientarea.php</strong></p>

<p>I cant make any changes in <strong>dologin.php</strong> as it is encoded.</p>

<p>I want me to redirect to <strong>clientdetails.php</strong> as soon as button is clicked.</p>

<p>How can I achieve ?</p>

<p><strong>Thanks</strong></p>

<p><strong>UPDATE</strong></p>

<p>Currently How I do this....</p>

<pre><code>&lt;script type="text/javascript" language="javascript"&gt;
        function redirect() {
            window.location.href = '/clientarea.php?action=details';
        }
&lt;/script&gt;


&lt;form action="dologin.php?" onsubmit="setTimeout('redirect()', 1000);" method="post" id="frmlogin"&gt;    
&lt;input type="hidden" value="something" /&gt;    
&lt;input type="submit" value="go" /&gt;
</code></pre>

<p>This Do my purpose, Even if login credentials fails it stick to login page with defining errors.</p>

<p>I was just looking for if there is any better/another way of doing it.</p>
