<?php$custom = "";foreach($_POST as $key => $value){ $custom .= "\$" . $key . " = \"". $value . "\";";}?>