Hi. I want to load a plugin from form submittion passing a form field as parameter. To do this I try using de php plugin and put in the php code:
$content = JHTML::_("content.prepare", "{pluginname}param1=paramvalue{/pluginname}");
echo $content;
If I select Process Script option "before the form is loaded (onLoad)", the plugin loads, but if I select Process Script option "EndofFormSubmission (onAfterProcess)", the plugin doesn't load.
I want to know what is wrong and how to pass paramvalue from a form field. The idea is to load a plugin dynamically with parameters selected by user.
Thanks.
$content = JHTML::_("content.prepare", "{pluginname}param1=paramvalue{/pluginname}");
echo $content;
If I select Process Script option "before the form is loaded (onLoad)", the plugin loads, but if I select Process Script option "EndofFormSubmission (onAfterProcess)", the plugin doesn't load.
I want to know what is wrong and how to pass paramvalue from a form field. The idea is to load a plugin dynamically with parameters selected by user.
Thanks.