code: def build_edit_form(title, id, cols, return_page):
      
      txt = '<H3>' + title + '<H3>'
      txt += '<form action="' + return_page + '" method="POST">\n' # return_page = /agents
      txt += '  updating id:' + str(id) + '\n<BR>'
      txt += '  <input type="hidden" name="rec_id" readonly value="' + str(id) + '"> '
      txt += '  <TABLE width=80% valign=top border=1>'
      
      for col_num, col in enumerate(cols):
          txt += '  <TR>\n'
          txt += '    <TD><div id="form_label">' + col + '</div></TD>\n'
          txt += '    <TD><div id="form_input"><input type="text" name="col_' + str(col_num) + '"></div></TD>\n'
          txt += '  </TR>\n'
      txt += '  <TR><TD></TD>\n'
      txt += '  <TD>\n'
      txt += '    <input type="submit" name="update-form" value="Save Changes">\n'
      txt += '    <input type="submit" name="delete-form" value="Delete">\n'
      txt += '    <input type="submit" name="add-form" value="Add">\n'
      txt += '  </TD></TR></TABLE>'
      txt += '</form>\n'
      return txt
docs: returns the html for a simple edit form