thanks for your reply !
But I want to do it without a button and without javascript.
I am running a query on submitting a form, then I want to redirect to last page that the user accessed. See this is my code:-
PHP Code:
require_once(DIR . '/includes/functions_login.php');
$vbulletin->url = fetch_replaced_session_url($vbulletin->url);
if (isset($_SERVER['QUERY_STRING'])) {
eval(print_standard_redirect('redirect_myphrase', true, true));}
Thanks