
Documentation Support > Developers? > ZAPSubmit
Format: function ZAPsubmit($formkey)
Explanation: This is the function called by the (:zapsubmit:) markup. First it checks to make sure the page is not being edited (action=edit) or that action=stop, to allow you to 1) save the page with the markup on it, and 2) suspend operation of the auto submit feature by putting action=stop in the address bar.
Otherwise, the function next sets all required SESSION variables for a ZAP form to be authenticated, tied to the optional key parameter in the markup.
Finally the ZAP Engine is called directly. Just that easy!