completed array in logic.php and form in index.php
form data on index.php works without php errors.