There is no way to do this in HTML, you need a programming language.
Have something on the server process the form an issue an HTTP 301 response with a Location
header.
You could enhance that by use the form's submit
event to prevent the default action and set location
in JS.