Forums

Event Switcher

diegomatos 07 May, 2015
Hello, I'm tring to use event Switcher, but when I save the form the chance
before save
<?php
if($form->data["opcao"] == "sac"){
return "success";
}else{
return "fail";
}

after sabe
<?php
if($form->data[\"opcao\"] == \"sac\"){
return \"success\";
}else{
return \"fail\";
}

when I test, show this error
Parse error: syntax error, unexpected '"', expecting T_STRING in public_html/administrator/components/com_chronoforms5/chronoforms/actions/event_switcher/event_switcher.php(26) : eval()'d code on line 2

anybody can help me
GreyHead 07 May, 2015
Hi diegomatos,

It looks as though your site has magic_quotes turned ON in the php.ini file, please check and try turning it off. See this Joomla! doc.

Bob
diegomatos 07 May, 2015
Hi GreyHead

I looked my php.ini and magic_quotes is OFF I chance to ON but don't solve the problem.
GreyHead 07 May, 2015
1 Likes
Hi diegomatos,

The correct setting is OFF, please double check on the Site Admin | System Information | PHP Information page as sometimes the php.ini file can be over-ridden by other .ini files

Bob
diegomatos 07 May, 2015
Hi GreyHead

This problem can be php version? In my site the version installed is PHP Version 5.3.14.

Diego
GreyHead 07 May, 2015
1 Likes
Hi diegomatos,

Unlikely, have you checked the PHP Info page?


Bob
diegomatos 07 May, 2015
Hi GreyHead

Problem solve, the problem were in the file .httpacess
when I updated the file I forgot of chance one world.

thanks a lot by help, and I`m so sorry by ignorance
This topic is locked and no more replies can be posted.