EZ Web Forms via E-Mail Print
Sunday, 30 April 2006

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.



 
< Prev

Mailing List

To join our mailing list,
enter your email address
and press Subscribe:

AzerTech RSS


Copyright © 2010 by AzerTech.net, All rights reserved.
Powered By BNT Solutions, Inc.



Note: Site functionality is impaired when using IE6 or less.