Help needed for a simple form
I recommend the tutorial https://craftquest.io/courses/how-to-create-craft-plugin Now, It is free after registration. After 1/2h you have your own plugin with settings and form with controller. Simple, straightforward, with craft form component. Your code is quite messy, try tutorial.