write form program like HTML form