• Hello,

    I’d like to run a simple php script when a button is pressed. Is this possible? I’ve achieved a similar thing with contact forms by hooking into the action that is called when the form is submitted, and specifying the form id. Is there a similar action I can hook to in MaxButtons?

    Thanks!
    Alex

Viewing 1 replies (of 1 total)
  • Plugin Author Bas Schuiling

    (@basszje)

    Hi Alex,

    This is not really possible. The simple reason is that the buttons are being displayed on the client, while PHP runs on the server. Contact forms sends data to the server, so you can hook into that, but MaxButtons doesn’t.

    I don’t know what you want to run, but sometimes with combining other plugins a solution is possible. Or dig in and see how you can create your own small javascript / ajax script handler.

Viewing 1 replies (of 1 total)

The topic ‘Run php action when button pressed’ is closed to new replies.