Writes input boxes to form