# HTML Form Redirect to same page

**URL:** <https://community.hubspot.com/t/html-form-redirect-to-same-page/22241>\
**Category:** APIs & Integrations\
**Tags:** developer-tools, forms\
**Created:** [June 29, 2020, 4:38pm UTC](https://community.hubspot.com/t/html-form-redirect-to-same-page/22241 "2020-06-29T16:38:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DavidFJones](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/davidfjones/32/75439_2.png) [@DavidFJones](https://community.hubspot.com/u/DavidFJones)\
**Post date:** [June 29, 2020, 4:38pm UTC](https://community.hubspot.com/t/html-form-redirect-to-same-page/22241/1 "2020-06-29T16:38:05Z")

</div>

Hey all,  
I am building a custom cms theme and need a custom form to be included in one of the pages.  
I’m having issues getting the form to properly redirect to the same page. Currently this is my opening form tag -

`<form action="{{request.path}}" method="POST" class="profile-form" enctype="multipart/form-data">`

However, when users submit this form, the page they are shown just shows  
“Request Forbidden” on screen.  
This form contains a name input, an email input, and a file upload input.

---

<div class="post-metadata">

**Author:** ![DavidFJones](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/davidfjones/32/75439_2.png) [@DavidFJones](https://community.hubspot.com/u/DavidFJones)\
**Post date:** [June 29, 2020, 8:49pm UTC](https://community.hubspot.com/t/html-form-redirect-to-same-page/22241/2 "2020-06-29T20:49:44Z")

</div>

I figured out what the issue is. Currently with HubSpot, and third party/outside form will only work with GET requests, and not post. Changing the opening tag to have a GET request fixes this issue

`<form action="{{request.path}}" method="GET" class="profile-form" enctype="multipart/form-data">`
