3 users online. Create an account or sign in to join them.Users

Search

Hello,

How can I get an array into the send-email event?

This is my form:

<form method="post" action="" enctype="multipart/form-data">
    ...
    <input name="fields[selection][]" type="hidden" value="{@id}" />
    ...

    <input name="send-email[body]" value="fields[selection],fields[address]" type="hidden" />

</form>

When I get an email, it just says:

// selection
Array

... and that's it.

When I use

<input name="send-email[body]" value="fields[selection][],fields[address]" type="hidden" />

I get the same code as an email:

  fields[selection][],fields[address]

How can I get a value in there?

Thanks for any help.

OK, just for the record:

I solved this by adding an extra hidden field my-selection:

<input name="fields[my-selection]" type="hidden" value="{title}" />

Then adding it to the send-email filter:

<input name="send-email[body]" value="fields[my-selection],fields[address]" type="hidden" />

I was a bit surprised that it works because my-selection had not been defined in my Orders section.

hidden feature :)

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details