- Tue Sep 25, 2018 5:05 am
#816257
Hi,
I'm getting the following error in my trigger
I'm getting the following error in my trigger
Code: Select all
When I looked at my code, they looked alright. I can't figure out why it is not parsing it properly. Can you please have a look? I am trying to POST using XML format, I tried both the following and both did not work.syntax error, unexpected 'if' (T_IF)
Code: Select all
and CURLOPT_POSTFIELDS => "<?xml version='1.0' encoding='UTF-8'?>
<Customer>
<Alpha>" . $Alpha . "</Alpha>
<Name>" .
if (isset($BusinessNameAlternative)):
$BusinessNameAlternative;
elseif (isset($BusinessNameDropDown)):
$BusinessNameDropDown;
else :
$companyName;
endif;
. "</Name>
Code: Select all
CURLOPT_POSTFIELDS => "<?xml version='1.0' encoding='UTF-8'?>
<Customer>
<Alpha>" . $Alpha . "</Alpha>
<Name>" .
if (isset($BusinessNameAlternative))
{
$BusinessNameAlternative;
} elseif (isset($BusinessNameDropDown)) {
$BusinessNameDropDown;
} else {
$companyName;
}
. "</Name>