As an example, in my pnadmin.php, the "main" function displays a table containing attorney names and Edit and Delete links that call an adminapi function are formatted using pnModURL, resulting in links such as index.php?module=attorneys&type=admin&func=modify&aid=1, where aid is the attorney id. In other words, no user input is involved.
In pnadminapi.php, after doing a security check for access, I thought it would be sufficient to only use extract($args) to obtain the 'aid' variable. Instead, the variable is not being created at all.
If I use
Code
$aid = pnVarCleanFromInput('aid');
So why bother with extract()?
Just trying to come to an understanding of the best way to pass the data (and would love to know why extract() is having no effect). Thanks, in advance, for your help.
