sonuyos Posted May 10, 2019 Share Posted May 10, 2019 (edited) Alright, So i want to connect a hook with a button. In this page - https://domain.com/billing/clientarea.php?action=creditcard There is a button, that when someone update their card, they need to press - http://prntscr.com/nms9wy I want to attach a code to that button that would trigger a hook. The hook is basically a sendmail hook, that will send a mail from the template. The code is pretty mch ready, however idk hw to connect it. Here is the hook code. <?php function cardverification($vars) { $command = "SendEmail"; $adminuser = "ADMIN"; $postData = array( 'messagename' => 'Verification - Card', //Template Name 'id' => $clientid, //ClientID taken from the page - https://domain.com/billing/clientarea.php?action=creditcard ); $results = localAPI($command,$postData,$adminuser); } ?> Can anyone help? Edited May 10, 2019 by sonuyos 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.