/** * The FORMfields Library * Copyright 2005-2007 Brain Book Software LLC * For complete documentation, please visit http://www.formfields.com */ UPDATE!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! FORMfields Library v2.0 Setup ------------------------------------- INSTALLATION 1. This step is only for users upgrading from a previous version of FORMfields. We recommend that you rename the existing FORMfields directory in your root directory to something like FORMfieldsOld. This way you can more easily copy over the previous configurations that were in dbHelpers.php, FORMfields.css, and tableHelpers.css to your new FORMfields installation. 2. Unzip the FORMfields archive to the root directory of your website. We recommend that you first save the FORMfields archive to your local machine and then use WinZip or another similar application to unzip your files. Then you should use an FTP program to copy the unzipped files to the root directory of your web server. Important: all directory and file names are case sensitive and must remain intact. After you are done copying these files to your web server, you should have a directory like http://www.yourdomain.com/FORMfields and in this directory there should reside all the FORMfields files and directories. 3. Test out your installation by going to http://www.yourdomain.com/FORMfields/examples/example1.php. You should see a Contact Us form with fields for Name, Subject and Message. If you receive an error then you should try visiting http://www.yourdomain.com/FORMfields/examples/example2.php. If Example 2 displays fine then you most likely have your DOCUMENT_ROOT variable misconfigured and should use the require method outlined here. 4. This step is only for users who wish to use FORMfields Lib v2.0 with the downloadable version of FORMgen v1.1. You must download step1Header.php and upload this file to your website's /FORMgen directory. CONFIGURATION 1. If you are going to be using the database functionality of FORMfields or TableHelpers then: 2. Use an FTP client to download the file http://yourdomain.com/FORMfields/dbHelpers.php. Open this file in a text editor and set DB_HOST, DB_USER, DB_PWD, and DB_NAME to your database’s configuration. If you are unsure as to what these values should be, please refer to your hosting company’s control panel or contact your hosting company’s tech support. DB_HOST - The hostname of your database DB_USER - The username for your database account DB_PWD - The password for your database account DB_NAME - The name of your database For example, your modification to dbHelpers.php should look something like: define ("DB_HOST", "localhost"); define ("DB_NAME", "mydatabase"); define ("DB_USER", "myuser"); define ("DB_PWD", "mypwd"); 3. FTP dbHelpers.php back to your website. 4. Test out your configuration by going to http://www.yourdomain.com/FORMfields/examples/contactUs/createContactUs4.php to create an example database table. Then go to http://www.yourdomain.com/FORMfields/examples/contactUs/contactUs4.php and submit a record. And finally, view your records at http://www.yourdomain.com/FORMfields/examples/contactUs/viewContactUs4.php.