Skip to content
This repository has been archived by the owner on Sep 11, 2018. It is now read-only.
/ formB Public archive

FormB is a class for common online form processing written in PHP.

License

Notifications You must be signed in to change notification settings

roryhardy/formB

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FormB is a class for common online form processing written in PHP. It offers support for user error handling, email address validation, web form validation, different ways to send data via email, html email template support, database user IP address logging, methods to sanitize user input to protect against XSS attacks, and more! This code has been tested to be PCI compliant as of 1-16-2012

If you intend to use this script, be sure to download a tagged version. HEAD is not tested for stability!

formB_config.php is REQUIRED by formB.php. Be sure to have it available or this system will not function!

If you prefer to use .inc instead of .php for include files,

Adding:

<FilesMatch "\.inc$">
	Order allow,deny
	Deny from all
</FilesMatch>

to your .htaccess file is recommended.
If a .inc file is requested, all of the code will be revealed as plain text (which is usually very undesirable).

See Default.sql for a proposed table structure for use with the IP-Checker methods!

A note, this script does a simple sanitization.  It is not sufficient for a CMS or the re-displaying of HTML submitted via a form.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

About

FormB is a class for common online form processing written in PHP.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages