# How to send user input from frontend to backend

**URL:** <https://forum.shopware.com/t/how-to-send-user-input-from-frontend-to-backend/91116>\
**Category:** Shopware 6 (English)\
**Created:** [27. Oktober 2021 um 05:41 UTC](https://forum.shopware.com/t/how-to-send-user-input-from-frontend-to-backend/91116 "2021-10-27T05:41:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hasan.h](https://avatars.discourse-cdn.com/v4/letter/h/e56c9b/32.png) [@hasan.h](https://forum.shopware.com/u/hasan.h)\
**Post date:** [27. Oktober 2021 um 05:41 UTC](https://forum.shopware.com/t/how-to-send-user-input-from-frontend-to-backend/91116/1 "2021-10-27T05:41:37Z")

</div>

Hello,  
I am new to shopware development and I have been having a problem with one of my tasks. I want to send the user input to a php file in the back. Could someone explain the process of doing so?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [27. Oktober 2021 um 11:26 UTC](https://forum.shopware.com/t/how-to-send-user-input-from-frontend-to-backend/91116/2 "2021-10-27T11:26:56Z")

</div>

There is no direct connection between frontend and backend.

Data is stored in the database. Write the data from the frontend in the database. Get the data in the backend from the database.

---

<div class="post-metadata">

**Author:** ![hasan.h](https://avatars.discourse-cdn.com/v4/letter/h/e56c9b/32.png) [@hasan.h](https://forum.shopware.com/u/hasan.h)\
**Post date:** [27. Oktober 2021 um 12:20 UTC](https://forum.shopware.com/t/how-to-send-user-input-from-frontend-to-backend/91116/3 "2021-10-27T12:20:23Z")

</div>

How do I access the user input data in the frontend?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [28. Oktober 2021 um 10:35 UTC](https://forum.shopware.com/t/how-to-send-user-input-from-frontend-to-backend/91116/4 "2021-10-28T10:35:02Z")

</div>

You have to write an plugin.

> **[Plugin Base Guide](https://developer.shopware.com/docs/guides/plugins/plugins/plugin-base-guide)**

---

<div class="post-metadata">

**Author:** ![hasan.h](https://avatars.discourse-cdn.com/v4/letter/h/e56c9b/32.png) [@hasan.h](https://forum.shopware.com/u/hasan.h)\
**Post date:** [28. Oktober 2021 um 10:47 UTC](https://forum.shopware.com/t/how-to-send-user-input-from-frontend-to-backend/91116/5 "2021-10-28T10:47:24Z")

</div>

I have made my plugin. Inside my plugin, how do I access the data that is being entered by the user?

---

<div class="post-metadata">

**Author:** ![Max\_Shop](https://avatars.discourse-cdn.com/v4/letter/m/58f4c7/32.png) [@Max\_Shop](https://forum.shopware.com/u/Max_Shop)\
**Post date:** [28. Oktober 2021 um 10:48 UTC](https://forum.shopware.com/t/how-to-send-user-input-from-frontend-to-backend/91116/6 "2021-10-28T10:48:11Z")

</div>

I guess you will find everything you need in the developer documentation.

---

<div class="post-metadata">

**Author:** ![hasan.h](https://avatars.discourse-cdn.com/v4/letter/h/e56c9b/32.png) [@hasan.h](https://forum.shopware.com/u/hasan.h)\
**Post date:** [28. Oktober 2021 um 10:48 UTC](https://forum.shopware.com/t/how-to-send-user-input-from-frontend-to-backend/91116/7 "2021-10-28T10:48:43Z")

</div>

I did not find that in the documentation but thanks for trying.
