Help for this page

Select Code to Download


  1. or download this
    # Given a test table along the lines of
    use test;
    ...
        type         ENUM('admin','user','root','bot') 
                        NOT NULL DEFAULT 'user'
           ) TYPE = InnoDB;
    
  2. or download this
    use DBI;
    use SQL::DBIforms;
    ...
            $field->is_required ? ' (required)' : '', # for NOT NULL
            "\n<p>\n";
    }
    
  3. or download this
    Id: 
    <input type="text" name="userish.id" size=6 maxlength=6> (required)
    ...
    <option value="root">root
    <option value="bot">bot
    </select> (required)
    
  4. or download this
    use Data::Dumper;
    sub make_form_fields {
    ...
    # I haven't written the parsing, just playing still so a cop out...
        return = "<PRE>", Dumper($table), "</PRE>\n";
    }