lebearuk,
Thanks for getting in touch! Can I ask why you went to the trouble of creating your own form? Were you looking for something custom that the built-in Community form didn’t supply? Feedback like this is always helpful for us to understand our customers needs better, so thanks in advance for any insight you could give us.
The Community events add-on actually uses this core function to create events from the submission form: tribe_create_event(). If you look at the documentation there, it should show you how to pass values to the function and create your event there, if you’re still wanting to do this with a custom form.
Hopefully that points you in the right direction. Thanks! 🙂
-Casey-