- 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;
- or download this
use DBI;
use SQL::DBIforms;
...
$field->is_required ? ' (required)' : '', # for NOT NULL
"\n<p>\n";
}
- 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)
- 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";
}