I'm building a form and would like to either have the "submit" button drive to an external URL, or to a page on my site that redirects to an external URL. I can't find a way to make this work. Is this possible?

1 Answer 1


You can control the URL that the browser sends form requests to using the action attribute. If you leave this attribute empty or don't include it at all, the request will just go to same page (URL) the form is on. But you can point it to an external URL as well:

<form method="POST" action="https://example.com/path/to/form/submissions">
    <!-- … -->

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.