srins has asked for the wisdom of the Perl Monks concerning the following question:
I need to define text box if the type is text ie if type=>"text",and if the type is dropdown ie tpe=>"dropdown",i need to define select option using the name and value pairs dynamically.I need to define template using name and value pairs from the below hash.name is used to define text box or select option name ie label and value refers to its values.can any body suggest me how to define html template for this hash. Text box may contain default value when it is present in default=>"some value" ,need to show the default value to user and in the case of select option default=>"some value ",refers to selected in select option menu.If the enteries=>"more" means i need to define text area instead of text. can any one suggest me how to define HTML:: template for this hash. Thanks, srins.%add=( hash1=>{ name=>"name1 ", type =>"text", default=>" " value=[""], entries=>"M". }, hash2=>{ name=>"name2 ", type=>"dropdown", req=>"prc", default=>" " value=["value1","value2","value3"], entries=>" " } );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: how to define html::template for the following hash in perl/cgi
by friedo (Prior) on Nov 04, 2005 at 14:03 UTC | |
by radiantmatrix (Parson) on Nov 04, 2005 at 14:38 UTC | |
by friedo (Prior) on Nov 04, 2005 at 16:08 UTC | |
|
Re: how to define html::template for the following hash in perl/cgi
by amw1 (Friar) on Nov 04, 2005 at 15:45 UTC | |
by srins (Sexton) on Nov 05, 2005 at 20:03 UTC |