From: Sean O'Halpin Date: 2005-10-28T03:11:04+09:00 Subject: Re: HELP HELP PLEASE HELP Have you made sure your text input tags have a name attribute? require 'html/htmltokenizer' host = Object.new def host.getHTML html = < EOT end # Your code follows unchanged def parse(host) dict = { } @body= host.getHTML() if !@body return end theTags = ['select','input'] for x in theTags do tokenizer = HTMLTokenizer.new(@body) while tag = tokenizer.getTag(x) name = tag.attr_hash['name'] type = tag.attr_hash['type'] if name != nil then dict[type]=name end # if end# while end# for x return dict end # end parse p parse(host) -- Output -- {"text"=>"txt1", "checkbox"=>"ck1", "password"=>"pwd1"} Regards, Sean