Search

Hi i am having trouble with checking for a success in the returned event xml data after a form with multiple entries is used i followed Brendos gist tutorial

as i am also entering a entry into another section

form example:

<input type="text" name="fields[1][first-name]"/><input type="text" name="fields[1][first-name]"/> <input type="text" name="fields[1][last-name]"/> <<<< both sets of arrays go into same section <input type="text" name="fields[2][first-name]"/> <input type="text" name="fields[2][last-name]"/> <input type="text" name="fields[0][feedback]"/> <<< goes to seperate section via the event

i am trying to test with something like this

if($result->getAttribute('result') == 'success') { //do something here however because the data being entered is in different array positions its not picking up a result ... does anyone know a way round this??

}

bump

as i have previously stated i am trying to check on get the result of success in a specific array position is it possible?

I'd recommend using Sections Event for sending data to multiple sections.

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