put a checkbox in the form and you get the following parse error.
Parse error: parse error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /www/t/techinfo/htdocs/forms/phpFormMailGenerator/ini/20040805-c4db.lib.php on line 20
Code in lib.php is below to line 35.
<?
define( "ADMIN_MAIL", "s6software@users.sourceforge.net" ); // bug report email
define( "HOST_NAME", getEnv( "HTTP_HOST" ) );
define( "PHP_SELF", getEnv( "SCRIPT_NAME" ) );
define( "ERR_MISSING", "Missing required field : " );
define( "ERR_EMAIL", "Please type in a valid e-mail address : " );
define( "ERR_CREDIT_CARD_NUMBER", "Please check the credit card number : " );
define( "ERR_CREDIT_CARD_EXPIRED", "Please check the credit card expiry date : " ); ***** here is line 20********* define( "ERR_SELECT_UPLOAD", "Please select upload file : " );
error_reporting( E_ERROR | E_WARNING | E_PARSE );
?><?php // --- Array of Form Elements --- $form_mail[] = array( "name" => "1", "text" => "1", "type" => "checkbox", "required" => "Required" ) ;
// -- Create new vars for checkPass() & sendFormMail() -- $1 = array(); $1[0]=$HTTP_POST_VARS[ "Checkbox01_1"]; $HTTP_POST_VARS[ "1" ] = join( "\n", $1);
Log in to post a comment.
put a checkbox in the form and you get the following parse error.
Parse error: parse error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /www/t/techinfo/htdocs/forms/phpFormMailGenerator/ini/20040805-c4db.lib.php on line 20
Code in lib.php is below to line 35.
<?
define( "ADMIN_MAIL", "s6software@users.sourceforge.net" ); // bug report email
define( "HOST_NAME", getEnv( "HTTP_HOST" ) );
define( "PHP_SELF", getEnv( "SCRIPT_NAME" ) );
define( "ERR_MISSING", "Missing required field : " );
define( "ERR_EMAIL", "Please type in a valid e-mail address : " );
define( "ERR_CREDIT_CARD_NUMBER", "Please check the credit card number : " );
define( "ERR_CREDIT_CARD_EXPIRED", "Please check the credit card expiry date : " );
***** here is line 20*********
define( "ERR_SELECT_UPLOAD", "Please select upload file : " );
error_reporting( E_ERROR | E_WARNING | E_PARSE );
?><?php
// --- Array of Form Elements ---
$form_mail[] = array( "name" => "1", "text" => "1", "type" => "checkbox", "required" => "Required" ) ;
// -- Create new vars for checkPass() & sendFormMail() --
$1 = array();
$1[0]=$HTTP_POST_VARS[ "Checkbox01_1"];
$HTTP_POST_VARS[ "1" ] = join( "\n", $1);