Location: PHPKode > scripts > Max Contact > Max Contact/documentation/extras.htm
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>Configuring the Max Contact System</title>
</head>

<body>

<p align="center"><img border="0" src="images/header.jpg" width="685" height="106"></p>
<table border="0" cellpadding="8" cellspacing="0" width="100%">
  <tr>
    <td width="21%" valign="top">
      <table height="241" background="images/link_box.gif" width="151">
        <tbody>
          <tr>
            <td valign="top" width="143" height="16"><font size="2" face="Verdana">&nbsp;<img src="images/tri_yellow.gif" align="absMiddle" width="7" height="8">
              <a href="index.htm">Overview</a></font></td>
          </tr>
          <tr>
            <td width="143" height="18"><font size="2" face="Verdana">&nbsp;<img src="images/tri_yellow.gif" align="absMiddle" width="7" height="8">
              <a href="installation.htm">Installation</a></font></td>
          </tr>
          <tr>
            <td width="143" height="18"><font size="2" face="Verdana">&nbsp;<img src="images/tri_yellow.gif" align="absMiddle" width="7" height="8">
              <a href="configuration.htm">Configuration</a></font></td>
          </tr>
          <tr>
            <td width="143" height="18"><font size="2" face="Verdana">&nbsp;<img src="images/tri_yellow.gif" align="absMiddle" width="7" height="8">
              <a href="extras.htm">Advanced Usage</a></font></td>
          </tr>
          <tr>
            <td width="143" height="19"><font size="2" face="Verdana">&nbsp;<img src="images/tri_yellow.gif" align="absMiddle" width="7" height="8">
              <a href="css.htm">Email Page Format</a></font></td>
          </tr>
          <tr>
            <td width="143" height="18"><font size="2" face="Verdana">&nbsp;<img src="images/tri_yellow.gif" align="absMiddle" width="7" height="8">
              <a href="webwisesage.htm">Web Wise Sage</a></font></td>
          </tr>
        </tbody>
      </table>
      <p>&nbsp;</td>
    <td width="67%" valign="top">
      <p align="center"><font size="4" face="Verdana" color="#0000FF"><b>Advanced
      Usage</b></font></p>
      <p align="center"><font face="Verdana" size="3" color="#800000">HTML
      Emails and and an Extra Drop-Down Box</font></p>
      <font face="Verdana" size="2">
      <p align="left">To use HTML in your auto-responses, just go to the
      contactconfig.php file and change the value of <font size="2" color="#0000f0"><b>$syshtml
      </b></font><font size="2">to be TRUE. Like this:</font></p>
      <p align="left">$syshtml = TRUE;</p>
      <p align="left">This will allow you to use HTML in your auto-response
      emails. Yes, they are called TXT files, but you can use HTML coding in
      those files.</p>
      <p align="left">Note that you can personalize either the text message or
      the HTML message. You can use these tags in the file:</p>
      <p align="left">[NAME]<br>
      [COMPANY]<br>
      [URL]<br>
      [EMAIL]<br>
      [PHONE]<br>
      [SUBJECT]<br>
      [BODY]<br>
      [NATURE]<br>
      [EXTRA]</p>
      <p align="left">And they will be replaced with info from the contact form,
      when the user submits it. (The [EXTRA] tag is discussed next....)</p>
      <p align="left"><b>An Extra Drop-Down Box</b></p>
      <p align="left">You've seen how to setup auto-responses based upon the
      Nature of Contact drop-down box. You can also add your own customized
      drop-down box.&nbsp; To do this, go to the contactconfig.php file and
      change the value of <b><font color="#0000F0">$sysextra</font></b> to be
      TRUE.&nbsp; Like this:</p>
      <p align="left">$sysextra = TRUE;</p>
      <p align="left">Then fill in the <b><font color="#0000F0">$sysfilename</font></b>
      variable with the name of a file which contains the info you want to be
      displayed in your drop-down box. Like this:</p>
      <p align="left">$sysfilename = 'sysextra.txt';</p>
      <p align="left">Whatever you put in the sysextra.txt file, this gets
      displayed in the customized drop-down box, line by line, one after the
      other.&nbsp; For example:</p>
      <p align="left">Texas 20.25<br>
      Georgia 30.50<br>
      Alabama 40.25</p>
      <p align="left">So if you put the above as the contents of the
      sysextra.txt file, then the resultant drop-down box will look like this:</p>
      <p align="left"><select size="1" name="fred">
        <option value=" " selected>Choose</option>
        <option value="Texas 20.25">Texas 20.25</option>
        <option value="Georgia 30.50">Georgia 30.50</option>
        <option value="Alabama 40.25">Alabama 40.25</option>
      </select></p>
      <p align="left">&nbsp;</p>
      <p align="left">Then assign a value to <b><font size="2" color="#0000f0">$sysdropdown
      </font></b>as the label of the drop-down box. If you do this:</p>
      <p align="left">$sysdropdown = 'Shipping';</p>
      <p align="left">then the result will be:</p>
      <p align="left"><select size="1" name="fred">
        <option value=" " selected>Choose</option>
        <option value="Texas 20.25">Texas 20.25</option>
        <option value="Georgia 30.50">Georgia 30.50</option>
        <option value="Alabama 40.25">Alabama 40.25</option>
      </select>&nbsp; Shipping</p>
      <p align="left">&nbsp;</p>
      <p align="left">OK, what happens with the above drop-down box? Whatever
      value the user chooses, <u>that</u> will be assigned to [EXTRA] so that
      wherever you put [EXTRA] in your <b>sysyouremail.txt </b>file, you'll see
      what the user chose when you get your notification email. You can also put
      [EXTRA] in any of the HTML (or plain text) auto-response messages that get
      sent to the user.</p>
      <p align="left">&nbsp;</p>
      <p align="left">Now, let's look at how you can change the color and fonts
      on the Email Contact Form....</p>
      <p align="center">(<a href="css.htm">Contact Page Format</a>)</font></td>
    <td width="12%" valign="top"></td>
  </tr>
</table>

</body>

</html>
Return current item: Max Contact