Basic Info | Database | Display | Forms | Monju | Session | Users

form_dispatch

form_dispatch($data, $target, $info = false)

Description

form_dispatch takes a signed array from form_prepare and automatically handles all the work with eiher adding it to the database, emailing one or more people, or creating an XHTML representation of the data.

Parameters

$data: A signed array from form_prepare. [type:array]

$target: EMAIL, DATABASE, or BROWSER. [type:string]

$info: Comma separated list of additional information required by dispatching function. [type:string]

Return Values

Form data is dispatched to target On Success: True [type:boolean] On Failure: False[type:boolean]

Notes

When sending to browser, it will echo the data in place, not return it. Limit list of emails to less than 50.

Examples

form_dispatch($data, 'EMAIL', 'email1@site.com, person@example.com')

Dependencies

- monju.lib.php

Comments

Support the Docs!

If you notice a mistake in the documentation, instead file a bug report in the issue tracker. Instead use this to add tips and tricks associated with the functions. You can use tags like to keep your comments clear.