OK..I've got a variable...$tableName...and it's set through a case statement (drop down box) depending on which table the user wants to browse. Now, I've set this up in a php script called globals but when the user selects the table they want cool, it connects and gives them correct result. But if they try to modify it, the variable $tableName returns as "none", the default by the way. Now I see that the variable is out of scope but using
<PRE>
switch ($GLOBAL(["tablechoice=MyTable"]) {
case "m":
$tableName="MyTable";
break;
case "y":
$tableName=YourTable"";
break;
case "o":
$tableName="OurTable";
break;
default:
$tableName="none";
break;
}
</PRE>
returns the same error?? So I might want to try $HTTP_POST_VARS?? How? Or si there a better way? All input welcome and appreciated!
Marcel.