Description: '.$formData['text'].'
';
}
//Here, notice if data has been posted.
foreach ($_POST as $index=>$value) $formData[$index] = $value; //copy posted data into $formData
if (isset ($formData['name'])) $lastActivityEntered = createEvent ($formData); else $lastActivityEntered = '';
//Head of HTML document
?>
Motivation: forms