Hello
This is off topic, thanks for a direct hint to a module or an
appropriate mailing list.
I want to read an HTML form into an hash. But I don't want to use
HTML::Tree or similar DOM Object trees. I need simply all form relevant
information as an hash which is human readable. Example:
my $formfields = {
printorder => ['Name','Request','Newsletter','Message'],
Name => {
tag => 'input',
attr => { value => "bbb", type => "text", style => "width:200", class
=> "singleinput", size => "30" } },
Request => {
tag => 'select', options => [ {
value => "casea", selected => 1, label => "xxx" },{
value => "caseb", label => "yyy" },{
value => "casec", label => "zzz" } ],
attr => { style => "width:200", multiple => "multiple", class =>
"singleinput", size => "2" } },
Newsletter => {
label => "Newsletter", tag => 'input',
attr => { value => "gggg", type => "checkbox", style => "width:22",
class => "singleinput", size => "30" } },
Message => {
label => "Nachricht", tag => 'textarea',
attr => { value => "sdgdsfgdsfg", style => "width:200", class =>
"singleinput", rows => "5", cols => "28" } } };
I've tried HTML::Form but I found a leek of support to attributes as
'class' or 'onClick'. On the print side i can not access each input
reference in a loop.
Best Regards Christian