I often use the following lines to simplify handling form input.
foreach($_POST as $key => $value){
$$key = $value;
}
This is really handy because you only need there lines and you've got all of the things you submitted as variables, but every time I use it, I think that I am overlooking something. There is a bit of danger in accidentally having multiple variables named the same thing, but I'm more worried about security. Is there some way that this would be a vulnerability in that regard? i.e. the user fabricates some form input with a malicious name?