Writing front-end form input to panel?

What’s the best way of getting form input into the panel, for example as a new entry in a structure field or a new subpage?

For my use case I want to collect e-mail addresses, but it could be any kind of data the user inputs (orders, comments, contact forms). I’ve considered writing to a database and then building a custom CRUD interface for it. But ideally I’d prefer using the panel for the CRUD and remain db-free altogether.

(And for e-mails I could connect to MailChimp’s API, but in the near future I’d like to handle some user data other than e-mails)

You can use $page->create() for page creation from form data or $page->update() to add to a structure field.

Check out this cookbook recipe: https://getkirby.com/docs/cookbook/creating-pages-from-frontend


Argh, I knew I was overlooking some kind of docs or cookbook page. Thank you!