[htmltmpl] need to define html::template from the following hash
Brought to you by:
samtregar
From: srinivasan v. <sri...@ya...> - 2005-11-04 13:26:07
|
hi, i need to define html::template from the following hash. %add=( hash1=>{ name=>"name1 ", type =>"text", default=>" " value=[""], entries=>"M". }, hash2=>{ name=>"name2 ", type=>"dropdown", req=>"prc", default=>" " value=["value1","value2","value3"], entries=>" " } ); 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. --------------------------------- Yahoo! FareChase - Search multiple travel sites in one click. |