We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 53118
    • 28 Posts
    Hello,

    Recently I have coded some php working with FormIt and today when I work on this code I don't know how this was working (it was something about 2 months ago when I have coded this php section)

    When the form has been submitted and when all the validation has succeeded I want to add some extra custom php code to save the data in the database

    This is the php code I have written:
    if ($ĥooks && $page == FORM_SUBMITTED_PAGE ){
        // save data into datase
    }


    Today, "$hooks" is always empty! even when all the validation is OK
    In the past it seems like $hooks was equal to 1 or some other sort of flag

    I can't find this $hooks variable at any other place in my program
    I can't remember, is this "$hooks" variable part of FormIt or is it me who coded this ?

    It was working fine in the past !

    Thank you for your help smiley
      • 3749
      • 24,544 Posts
      You might look at the FormIt2DB extra.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting