Hey everyone. I have this short little code that takes all variables from a form and does addslashes to put the variables in a database.
foreach($_POST as $key => $value)
{
$_POST[$key] = addslashes($value);
}
If I use pracitcally the same code later, it won't work.
foreach($_POST as $key => $value)
{
unset($_POST[$key]);
}
I'm assuming cause post is now $post[$key] ? how do i get around this?