This is an old revision of the document!


PHP-Script- and function

FIXME better translate

Since the release of r282 it is possible to process an own PHP function between the action “submit” and “sending the E-Mail”. This function can read all the form input, modify, and return it. See: PHP function include

With this function, the e-mail address can not be manipulated. If we need this possibility, we have to switch over to another method.

A simple script in “template/inc_script/frontend_init/” -folder is processed before the PHP function call of the form.

Processing order:

  1. Deliver the form to the browser
  2. Submit: receiving the form with the user input
  3. Processing the /frontend_init/ -Scripts
  4. Export the form into the DB
  5. Processing PHP function call from the form

<note important> Scripts in the /frontend_init/ -folder should be used with consideration, as this is an early intervention in the system process. These scripts should differentiate the site compared to the edited excerpt in order to avoid side effects. </note>


Short link overview

english/phpwcms-system/article/contentparts/form/special-applications/php-script-and-function.1280839998.txt.gz · Last modified: 2018/06/03 18:07 (external edit)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0