Search

Hi,
I created an event to put the name and email address to a section of the back-end. But when I fil in the form at the front-end nothing happens.
Here is the form I use. This was directly copied from the example the event shows.

<form method="post" action="" enctype="multipart/form-data">
  <input name="MAX_FILE_SIZE" type="hidden" value="5242880" />
  <label>Naam
    <input name="fields[naam]" type="text" />
  </label>
  <label>E-mail adres
    <input name="fields[e-mail-adres]" type="text" />
  </label>
  <label>Soort
    <select name="fields[soort]">
      <option value="Psycholoog">Psycholoog</option>
      <option value="Werkgever">Werkgever</option>
    </select>
  </label>
  <input name="action[nieuwsbrief]" type="submit" value="Submit" />
</form>

The fields inside the section “nieuwsbrief” are: “naam” , “e-mail adres” and “soort”.
I attached the event to the page “contact”, where the form is located.

Try changing the action of the form to ?debug. This will post the form and load up the debug afterwards so you can see the XML result of the event. It should tell you a little more information about why it’s failing.

<form method="post" action="?debug" enctype="multipart/form-data">
...
</form>

Yeah, I saw that the permission was denied. I looked inside the role permissions of the member extension, because I installed that and changed is to “create”. That works fine, thanks !

Goodo!

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details