Forums

API not functioning with OnSubmit

n6teb 24 Nov, 2010
I am trying to add an email address to our database at our email vendor Silverpop. I am placing code in the on submit section for after the email is sent. So far either nothing happens or I get an error saying T_Line.
Here is the code I am trying to use based on a sample from Silverpop.
I am new to php and chrnoforms. Any help would be much appriciated.
The code works using their test harness so I am pretty sure it could be something simple with the syntax.
Thanks, Dave


http://api5.silverpop.com/XMLAPI;
<Envelope>
<Body>
<AddRecipient>
<LIST_ID>33546</LIST_ID>
<CREATED_FROM>1</CREATED_FROM>
<COLUMN>
<NAME>EMAIL</NAME>
<VALUE>knowbody@domain.com</VALUE>
</COLUMN>
<COLUMN>
<NAME>Fname</NAME>
<VALUE>John</VALUE>
</COLUMN>
</AddRecipient>
</Body>
</Envelope>
GreyHead 25 Nov, 2010
Hi n6teb,

I'm not sure what you need to do here. The API link doesn't say anything useful.

My guess is that you need to use the PHP DOM functions (or possibly the XML-RPC code in Joomla!) to build a valid XML file.

Bob
This topic is locked and no more replies can be posted.