The action
attribute is where the HTTP POST request is sent to with the form data supplied.
It is then up to the action
URL page to process this data and do whatever it needs to with it.
If you wish to process the data on one file, and redirect to another, you could post to the HTML which will process the data, and then have an automatic redirect on that page to a 3rd page.
For example:
Page1.html:
<form action="Page2.html">
Page2.html:
Processes data then automatically redirects in some way:
<script type="text/javascript">
window.location = "Page3.html";
</script>
Page3.html:
Finally arrive at Page 3.
To the user this process would be seemless and appear as if they went from Page1.html
straight to Page3.html
, while your data processing is handled at Page2.html
.