# In my plugin module there is a page. On that page i want that when i click a button it executes some function in a php file

**URL:** <https://forum.shopware.com/t/in-my-plugin-module-there-is-a-page-on-that-page-i-want-that-when-i-click-a-button-it-executes-some-function-in-a-php-file/87024>\
**Category:** Shopware 6 (English)\
**Tags:** general, programming\
**Created:** [21. April 2021 um 06:03 UTC](https://forum.shopware.com/t/in-my-plugin-module-there-is-a-page-on-that-page-i-want-that-when-i-click-a-button-it-executes-some-function-in-a-php-file/87024 "2021-04-21T06:03:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![satvikshukla10122000](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@satvikshukla10122000](https://forum.shopware.com/u/satvikshukla10122000)\
**Post date:** [21. April 2021 um 06:03 UTC](https://forum.shopware.com/t/in-my-plugin-module-there-is-a-page-on-that-page-i-want-that-when-i-click-a-button-it-executes-some-function-in-a-php-file/87024/1 "2021-04-21T06:03:22Z")

</div>

Where should i place that php file and how can that function be called on clicking of that button. Pls help.
