Update form.php

output may sometimes be undefined