Weather Network Join Form PHP Script - join.php

Version: 1.00  28-May-2008

Version: 1.01  29-May-2008 
fixed session_start warning "headers already sent"

Version: 1.02  30-May-2008 
added Lat/Lon fields, fixed "TRIM here" comment syntax

Version: 1.03  07-Jun-2008 
added config setting for printing $thank_you message after form is sent

Version: 1.04  07-Jun-2008 
added setting for captch library [path]/[folder] 

Version: 1.05  13-Aug-2008
added version print tag into html source
added error message if "captcha_library not found"
added features by Kevin Reed at www.tnetweather.com: (Thanks Kevin)
Added HTML code to Pass Section 508 and WAI accessibility validation
Added meta tags (WAI Requirement)
Added labels for form elements (WAI Requirement)
Removed the table since is was not really needed.
Added fieldset/legend
Added CSS basics for the form to allow easier enhancement.
The entire form is now controlled by the div id of contactform.
added features: checks for required mail and image functions
fixed bug with truncated string when double quote in name or subject input
Better input string protection, new cleaner code input functions
renamed all included subroutines with ctf_ prefix so they will not conflict with other scripts
wordwrap email message text so lines are no longer than 70 characters
added ini_set sendmail_from, needed for some windows servers
this update is recommended for the bug fix and better security
added a few settings for email message headers
few other small fixes
If upgrading to version 1.04 and are integrating into your website template...
follow step 4 of the readme.txt and be sure to add the css and meta tags to your html <head></head> section

Version: 1.06 - 13-Aug-2008
- Problem: Warning: mail(): Bad parameters to mail() function, mail not sent.
- Solution: Removed '. PHP_EOL' from subject line.

Version: 1.07 - 14-Aug-2008
small fix in function ctf_validate_email
This update is not needed unless you were getting this error on send: 
Fatal error: Call to undefined function getmxrr()

Version: 1.08 - 16-Aug-2008
added feature to have the same form used for a domain that also has aliases, without turning off domain checking
http://www.weather-watch.com/smf/index.php/topic,33604.msg274348.html#msg274348
This update is not needed unless you need this feature

Version: 1.09 - 25-Aug-2008
Fix for handling a blank HTTP_REFERER (a rare condition) in host name check when $domain_protect is enabled

Version: 1.10 - 14-Aug-2008
small fix in function ctf_validate_email
This update is not needed unless you were getting this error on send: 
Fatal error: Call to undefined function getmxrr()

Version: 1.11 - 16-Aug-2008
added feature to have the same form used for a domain that also has aliases, without turning off domain checking
http://www.weather-watch.com/smf/index.php/topic,33604.msg274348.html#msg274348
This update is not needed unless you need this feature

Version: 1.12 - 20-Aug-2008
- how to add another field?
You would have to edit 5 places places in the script. 
This update just adds a comment for each place in the code. 
see the readme.txt for more details

Version: 1.13 - 25-Aug-2008
Fix for handling a blank HTTP_REFERER (a rare condition) in host name check when $domain_protect is enabled

Version: 1.14 - 23-Sep-2008
- added feature: Optionally you can change the default mail SMTP settings
- changed the display of input errors, each input error now displays exactly above the corresponding input field,
  the way it was before, the messages were all displayed in one bunch above the form.
- added a input error for captcha field not filled in rather than just saying the captcha did not match.

