Hello community,
i hope you can help me with the following problem:
i want to create a button and when you click on this button it should call a function.
So i tried this:
in page.php i added:
function showbutton() {
$button = new FormAction (
$action = "doAction",
$title = "Submit button"
);
return $button;
}
function doAction() {
my code.....
}
in the template i add $showbutton.
when i open the page, i can see the button but nothing happens when i click on it.
Regards,
StarForce