Button used for redirecting, with a php function
<p>I would like to be able to redirect to a page with a button. I do not want to use the headers function. I want to be able to call some function inside a php file. 
My function for redirecting looks something like this. Basicly the first part set what page to load in a static variable and then executes a reload of page which then executes the load function in some other initialization function.</p>

<p>This can be modified, its just how i taught of doing it.</p>

<pre><code>public function WSP_Redirect($site)
{
    self::$_mainsite = $site;

            //This is one option 
    //$this-&gt;LoadPage();

            // This is another option
    echo '&lt;script&gt;window.location.reload()&lt;/script&gt;';

}
</code></pre>

<p>The in another file i would, say press a button, and the button would then call this function(via post or whatever) to redirect to some page...</p>

<p>To me its not important how it is done but it is important that it uses the redirect function.</p>

<p>Any suggestions would be nice, I did check out the ajax and jquery but nothing i have tryed has worked so far :(</p>
