Trying to turn field name variables of $_POST[] into variables this is what I have but PHP is giving me this error:
Parse error: parse error, unexpected $ in process.php on line 316
foreach($_POST as $name => $value){
$value = strip_tags($value);
$$name = $value;
}
where $ is declaring the variable and $name next to is as the name of field comming from $_POST[]
What's a better approach to doing this?