Made php logic more elegant, altered HTML form using PHP to remember submission