# Form Submit to process function on a new page

**URL:** https://forum.kirupa.com/t/form-submit-to-process-function-on-a-new-page/307109
**Category:** web dev
**Created:** [March 28, 2010, 4:30pm UTC](https://forum.kirupa.com/t/form-submit-to-process-function-on-a-new-page/307109 "2010-03-28T16:30:03Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Gboyes99](https://avatars.discourse-cdn.com/v4/letter/g/cdc98d/32.png) [@Gboyes99](https://forum.kirupa.com/u/Gboyes99)
#### Post date: [March 28, 2010, 4:30pm UTC](https://forum.kirupa.com/t/form-submit-to-process-function-on-a-new-page/307109/1 "2010-03-28T16:30:03Z")

</div>

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?
