Skayfer Posted January 21, 2016 Share Posted January 21, 2016 I am creating my new module. Now i have problem. In getContent function i need to use a few times 'Tools::isSubmit', beacuse settings page of my module have a few forms. But when i add next 'Tools::isSubmit', after click i am redirect to main dashboard page. Can i use a lot of that tool ? PS. If i good think, isSubmit let only make action (execute code), when i click input-submit. Is possible use this method to click on another buttons ? Or maybe You know another method that can me help ? Thanks for answers. Link to comment Share on other sites More sharing options...
tuk66 Posted January 21, 2016 Share Posted January 21, 2016 Is it really necessary to use more forms at one page? Link to comment Share on other sites More sharing options...
Skayfer Posted January 21, 2016 Author Share Posted January 21, 2016 Is it really necessary to use more forms at one page? It isn't necesssary, but i need solution for call execution code in module php and now is only method what i know that give me this functionality. Link to comment Share on other sites More sharing options...
Skayfer Posted January 22, 2016 Author Share Posted January 22, 2016 Any idea ? I can make onclick event to button and call ajax function, which can execute php code in another file, but maybe is more correct solution. Link to comment Share on other sites More sharing options...
Skayfer Posted January 22, 2016 Author Share Posted January 22, 2016 Problem solved. I just forgot add " method="post" " to my form tag. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now