I would like to check all keys of a global GET array and do something, if it contains keys, other than some whitelisted ones from an array. Let’s say the current url is: Just for better visualization: These GET parameters are all available in the global GET variable which looks something like this: The keys I accept and want to
Tag: whitelist
How does this whitelist array affect $_POST data inside the foreach()?
I’m confused as to exactly what this does and how do you use it in your form processing. Does it only remove unwanted $_POST entries that are not in $expected[]? Should I still use $_POST[ ‘carModel’] to get the value? Or might there be a better way? Answer Right, the pseudo-code ${$variable} is the creation of a new variable, aka: