This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
How do I go about sending a simple form in OctoberCMS? Usually when I'm designing a static website I have an action pointed to a PHP Sendmail file a few variables and an email address inside it.
Last updated
Using AJAX Framework is the easiest way to send form data. https://octobercms.com/docs/cms/ajax
Its very important you understand how october works first http://www.sitepoint.com/introducing-octobercms-laravel-based-cms/
What if you don't want to use AJAX? Is there a way to do a normal form post? I would like to post to a component method or php file.
if you want submit with normal form post
remove data-request attribute and add this :
<form>
<input type="hidden" name="_handler" value="onSave">
{{ form_token() }}
{{ form_sessionKey() }}
</form>
Last updated
1-4 of 4