I am trying to pass arguments to a php script installed as a component.
The script component currently runs (with no arguments passed).
The script creates a web page that includes links like: http://my.site.com/index.php?id=home&myarg=test
and I would like to be able to get the value pair myarg=test in my php code.
(Note that I would like to be able to use POST as well eventually, but GET will work for now)
I have included the "global $args;" statement on the <?php line but apparently $args is empty.
The component is called "manuals" and the calling function from the page is {% manuals %}
I suppose I should place the $_GET values between "manuals" and "%}" but I have not been able to figure out if I can do that...
Thanks for any help.
Didier
The script component currently runs (with no arguments passed).
The script creates a web page that includes links like: http://my.site.com/index.php?id=home&myarg=test
and I would like to be able to get the value pair myarg=test in my php code.
(Note that I would like to be able to use POST as well eventually, but GET will work for now)
I have included the "global $args;" statement on the <?php line but apparently $args is empty.
The component is called "manuals" and the calling function from the page is {% manuals %}
I suppose I should place the $_GET values between "manuals" and "%}" but I have not been able to figure out if I can do that...
Thanks for any help.
Didier