Please see this example:
if (strlen($_SESSION['userDetails']['THISNAME']) == 0)
{
$_SESSION['userDetails'][''.$THISNAME.'Error'] = "autofocus";
include "$docRoot/html/forms/reg/user_info.html.php";
exit();
}
How would i use the name of THISNAME as I have done to create a new variable that appends Error on the name so in this example the output would be THISNAMEError?
Thanks!
$key = 'THISNAME';and append error on to it using$key .Error`;$foo = 'bar'; echo magic_function($foo);outputs"foo".