|
EZ Web Forms via E-Mail |
|
|
Sunday, 30 April 2006 |
|
Page 4 of 4
Advanced Functionality
ezform contains a function that returns false when displaying a normal page and true when processing a form post operation. This can be used to determine if a form post operation has taken place. This is useful, for example, when you want to have a form that is cc'd to the person who submitted it. If the person is supposed to put his email address in Question #0, for example, the code might look like this:
if ( $form -> inpost () )
$form -> cc = $form -> data ( 0 );
$form -> prepare ( $questions );
This adds a comma and the users' email address to the To email address. Note that this must be done before the prepare() method is called.
<< Start < Prev 1 2 3 4 Next > End >> |
|
|