Hi want to build a program which creates surveys. I couldn\' t figure out how can i assign value for a question which is unanswered. Thank you for your helps.
Your code doesn't make sense, try this:
$dizi = array(); foreach($_POST as $key => $value) { if (empty($value)) { $value = 'your value'; } $dizi[$key] = $value; }