# Submit form in incognito mode

**URL:** <https://community.hubspot.com/t/submit-form-in-incognito-mode/21030>\
**Category:** APIs & Integrations\
**Tags:** forms\
**Created:** [May 20, 2020, 1:15pm UTC](https://community.hubspot.com/t/submit-form-in-incognito-mode/21030 "2020-05-20T13:15:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![newMember](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/newmember/32/77060_2.png) [@newMember](https://community.hubspot.com/u/newMember)\
**Post date:** [May 20, 2020, 1:15pm UTC](https://community.hubspot.com/t/submit-form-in-incognito-mode/21030/1 "2020-05-20T13:15:44Z")

</div>

Hiii,

I need to submit a form. When it is a non-incognito mode, the form gets submitted. But if I am trying to send it from icognito window, it will throw error as “INVALID HUTK”.

I have written a condition as

`$hubspotutk = isset($_COOKIE['hubspotutk']) ? $_COOKIE['hubspotutk'] : 'hutk';`

I had tried with empty cookie value as

`$hubspotutk = isset($_COOKIE['hubspotutk']) ? $_COOKIE['hubspotutk'] : '';`

But it throwed the same error as above.

Is there any way to handle form submission in incognito mode???

Can someone help please?

---

<div class="post-metadata">

**Author:** ![WendyGoh](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wendygoh/32/42320_2.png) [@WendyGoh](https://community.hubspot.com/u/WendyGoh)\
**Post date:** [May 21, 2020, 6:04am UTC](https://community.hubspot.com/t/submit-form-in-incognito-mode/21030/2 "2020-05-21T06:04:29Z")

</div>

Hey @newMember,

How are you passing the cookie if there’s no cookie? If you’re passing in an empty cookie, the Form submission would throw the following error:

- INVALID\_HUTK - The `hutk` field in the `context` object is invalid.

If you’re indeed passing in an empty cookie, I’d suggest for you to implement this logic:

1. Check if hutspotutk is present

2. If it’s present, include it in the form data

3. If it’s not present, the form data should not have the context hutk.

---

<div class="post-metadata">

**Author:** ![leshapol](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/leshapol/32/78471_2.png) [@leshapol](https://community.hubspot.com/u/leshapol)\
**Post date:** [August 29, 2021, 4:38pm UTC](https://community.hubspot.com/t/submit-form-in-incognito-mode/21030/3 "2021-08-29T16:38:23Z")

</div>

In our case, if we do not pass a **hutk** , then we get an error 400.

How can I send a request with an empty value **hutk?**
