bannerbannerbannerbannerbanner
Jova wiki   tid   Login/Logout

RSS

Navigation





Quick Search
»
Advanced Search »

PoweredBy

Page History: PHP-mailer Form Strategies

Compare Page Revisions

Compare revision to revision


List of revisions

« Older Revision - Back to Page History - Newer Revision »


Page Revision: 2011/04/15 16:49


You can plan a strategy for an individual form. Assumptions (for this document):
  • install your phpmailer-fe.php and class.phpmailer.php in the /_lib directory.
  • install your form.html form in the root (/) directory.
    note: the action of the form would be: action="proc/phpmailer-fe.php"
    • Windows users should make the necessary changes to the directory names likely
      substituting /_lib with /cgi-bin
    • note: if you are using any of the extended features of phpmailer-fe.php
      please use a hidden field to include the name of the form. Example:
    • referer is required

      You could then have
      /_lib/default.config.php
      - see the attached /sample_form/default.config.php
      - this is was is called an External Configuration file. In this file, all of the form
      fields, all of the PHPMailer-FE settings and variables can be over-ridden - and
      is loaded by default (if it exists) and applies to ALL forms processed by PHPMailer-FE.
      /_lib/form.config.php
      - see the attached /sample_form/form.config.php
      - this is was is called an External Configuration file. In this file, all of the form
      fields, all of the PHPMailer-FE settings and variables can be over-ridden - and
      totally unique only to this form
      /_lib/form.tpl
      - see the attached /sample_form/form.tpl
      - this is an Email template file that will be sent to the site administrator ($recipient)
      It can be totally customized and include any of the form fields as a tokenized scalar
      example: if a form field name is name="frmFirstname", you would call it from the
      form.tpl template as {frmFirstname} - on execution, the form value will be substituted
      customizing the form as you wish. You can use all the form field values, or only the
      ones you want to email to the $recipient.

Jova wiki is © Jovall