Form Submit to process function on a new page

Right, I have a postcode/dealer search and I want to search the locations when the submit button is pressed so that the map has found the nearest locations and populated the map. But i want all this on a new page.

For example at the moment it says;
<input type=“button” onclick=“searchLocations()” value=“Search Locations”/>

but i want the onClick to take me to a new page then the search locations function to be activated with the form data submited.

Hope this makes sense?