Button value onclick

Discussion in 'Plugins/Modules/Addons' started by gody, Apr 24, 2015.

  1. gody

    gody Member

    Hi,
    It is possible to retreive the button value when i click on it?
    I var_dump the $_POST or $_REQUEST and i get all information about my form but nothing about the input buttons.
    So i ask me about the possibility.

    Thanks,
    Gody,
     

    Attached Files:

  2. gody

    gody Member

    Just add ?action=youraction on onclick submitForm call:
    onclick="submitForm('pageForm','host/host_action.php?action=stop')

    We retreive it with $_REQUEST['action']
     

Share This Page