<p>Doing it through a plugin would be the easiest way.</p>

<p><a href="https://docs.craftcms.com/v3/extend/plugin-guide.html" rel="nofollow noreferrer">https://docs.craftcms.com/v3/extend/plugin-guide.html</a></p>

<p>Your plugin would have a controller that the form would post to, then you'd grab the data from POST and do whatever you want with it.</p>

<p>A good example of this you can look at is the <a href="https://github.com/craftcms/guest-entries" rel="nofollow noreferrer">Guest Entries</a> plugin, that allows "anonymous" front-end entry submissions.</p>

CC BY-SA 4.0
2018-09-19T14:41:15.247Z
Thanks for the reply. I was thinking about this last night and I also came to the conclusion that a plugin may be the best way to handle this. I will give it a go!
Radmation
CC BY-SA 4.0
2018-09-18T22:51:18.977Z
2018-09-18T22:51:18.977Z
Brad Bell
<p>So I am coming from WordPress and typically I would typically handle a post by either hooking into the wp_post action and access the $_POST request that way. Now I believe Craft is built on Yii which is an MVC framework but I cannot find any documentation showing how to handle post requests?</p>

<p>Any help or can you point me in the right direction?</p>

<form><post>
How to handle form submissions?
# How to handle form submissions?

(Asked by: username_0 on 2018-09-18)

So I am coming from WordPress and typically I would typically handle a post by either hooking into the wp\_post action and access the $\_POST request that way. Now I believe Craft is built on Yii which is an MVC framework but I cannot find any documentation showing how to handle post requests?

Any help or can you point me in the right direction?

**Tags:** form, post

---

## 1 answers

### Answer by username_1 on 2018-09-18. Score: 1 | Accepted answer

Doing it through a plugin would be the easiest way.

<https://docs.craftcms.com/v3/extend/plugin-guide.html>

Your plugin would have a controller that the form would post to, then you'd grab the data from POST and do whatever you want with it.

A good example of this you can look at is the [Guest Entries](https://github.com/craftcms/guest-entries) plugin, that allows "anonymous" front-end entry submissions.

> **Comments:**
> **username_0**: Thanks for the reply. I was thinking about this last night and I also came to the conclusion that a plugin may be the best way to handle this. I will give it a go!  

---

