function redireccionar(){location.href="consulta.php?valor="+variable_JS}
<form name="consulta" action="" onsubmit="redireccionar(); return false">