This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

hello3919
hello3919

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

shina
shina

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/

bobby22076
bobby22076

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.

hamdanidev21477
hamdanidev21477

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

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.