Menu

#20 Errors due to deprecated php4 code

open
nobody
5
2010-03-07
2010-03-07
Anonymous
No

phpFormGenorator v2.09
Due to the use of deprecated long predefined PHP variables ($HTTP_*_VARS) in global.inc.php the script will not pass any variables when registered_long_arrays is turned off (by your webhoster). You'll get errors when submitting a form like "you have not filled in all fields...." or when creating a new form an error that says:
"The following errors occured while processing your request:

* You did not enter a valid number. Please use a number between 1 and 99." .

To solve this the use of superglobal arrays, like $_GET should be used.

In every global.inc.php file changing:
$varname = "HTTP_{$method}_VARS";
into:
$varname = "_{$method}";
does the trick!

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.