I am a beginner at craft cms,but I think these would help you:- 1.install the plugin guest entries and look at their code 2.look at this article