Script: Free Contact Form v1.2.1 Date: 21st SEPT 2006 URL: www.freecontactform.com Author: Stuart Cochrane Email: info@freecontactform.com CHANGE LOG FOR VERSION 1.2.1 Removed debugging info CHANGE LOG FOR VERSION 1.2 1. Fixed variable on fcf_parse to match the correct global scope. 2. Removed department radio buttons - only one email address if required in config. 3. Added a check for versions of PHP > 5.1 and included the date setting which may be required. Please report any bugs or problems to info@freecontactform.com - please include your PHP version, and give details of any non-default settings you have. Also include the Operating System and webserver. INSTALLATION: Package Contents. contact_form.php - the actual form. fcf_config.php - this file contains parameters which you MUST change fcf_parse.php - form processing script. thankyou.php - example thank you page, you can create your own. README.txt - some basic information regarding the script. Please read it. installation.txt - This file How to do a basic installation: Upload the zip file (or each file at a time) to your server, Consider which directory fits best with you site structure. Unpack the content of the zip to your folder (if you have not already) Open up fcf_config.php using an editor (vi would do on *nix) Or you can open it on your local machine then upload after! After the first comment block you will see: /* email configuration */ $email_it_to = "you@yourdomain.com"; Change the email address value to match your own. Confirmation/Success page. To divert the user to a confirmation page once the form has been successfully submitted.. Look for: // success page - the page the user gets when the form is successful $success_page = "thankyou.php"; Edit the thankyou.php value (held in the double quotes) to your own page. Or simply Edit the content of thankyou.php The next part is the question you want to give your visitors, by default the script will present a very simple math’s question - It works by selecting 2 numbers between 0 and 49 at random and assigning the 'plus' + sign. For example 23+2. It is suggested you should change this to a question more suited to your own site. If you want to make your own question, find: $question = "Please enter the answer to $rnumA plus $rnumB"; $answer = $rnumA+$rnumB; Update the questions held within the double quotes. Then add the answer to the question also in quotes, in place of $rnumA+$rnumB Next, find the line which has: $mkMine = "qPm5g"; The variable $mkMine holds your unique string, please update the value qPm5g with something else - it is strongly advisable to only use standard ascii character in here. OPTIONAL: If you want to change the default expiration time (60 minutes).. Look for the lines (in the mkEncStr() function ): // compare date/time $plTime = date("YmdHi",mktime(date("H"),date("i")+60)); $msTime = date("YmdHi",mktime(date("H"),date("i")-60)); Edit the 60 values to your own preference. Save you fcf_config.php file (upload if required) If you intend using this script on a form other than the one provided, you must also edit the file 'fcf_parse.php' This file contains basic validation of values which are expected from the default form. If you have no PHP coding experience it is not advisable to do this yourself. You can contact us for a free quote (info@freecontactform.com) ----- To build this form into your sites existing design: Open up contact_form.php for editing. Remove: