Contact Form Processing Products - for all your needs

FormMail • Form Encryption • Hosted Forms

MAXSTRING Setting

This page documents the MAXSTRING configuration setting in FormMail.

Type Of Setting

MAXSTRING is an OPTIONAL setting, which means...

OPTIONAL : you can change this setting if you need to, but the default value is fine for most circumstances.

Précis

Limits the length of fields accepted from the form.

Description

Set MAXSTRING to limit the maximum length of any value accepted from the form. Increase this if you have TEXTAREAs in your forms and you want users to be able to enter lots of data. This value has no effect on file upload size.

MAXSTRING also limits the size of special fields that you set. One reason for this is to help prevent attacks on your server's PHP or other software.

MAXSTRING also limits the size of fields loaded from an INI file, however, this limiting will be removed in a later version of FormMail.

Recent versions of FormMail have an internal array called $SPECIAL_NOSTRIP, which lists some special fields that are never size-limited. You should not alter this array, but you can view it to see the special fields that will not be affected by MAXSTRING.

Default Value

From version 9 onwards:

$MAXSTRING = 1024;

Before version 9:

define("MAXSTRING",1024);

Examples

From version 9 onwards:

$MAXSTRING = 5000;

Before version 9:

define("MAXSTRING",5000);

From version 9 onwards:

$MAXSTRING = 100;

Before version 9:

define("MAXSTRING",100);
 
Close