How to get user input for 2 digit data

Posted by oneMinute on Stack Overflow See other posts from Stack Overflow or by oneMinute
Published on 2010-03-21T18:20:37Z Indexed on 2010/03/21 18:41 UTC
Read the original article Hit count: 258

Filed under:
|
|

In a HTML form user is expect to fill / select some data and trigger an action probably a http-post.

If your only requested data field is a "2 digit" you can use html text input element get some data.

Then you want to make it useful; enable user easily select data from a 'html select'

But not all of your data is well-ordered so eye-searching within these data is somehow cumbersome. Because your data is meaningful with its relations. If there is no primary key for foreign key "12" it should not be shown. Vice versa if this foreign key occurs a lot, then it has some weight and could be displayed with more importance.

So, what will be your way?

a) Use text input to get data and validate it with regex, javascript, ...

b) Use some dropdown select.

c) Any other way ?

Any answer will appreciated :)

© Stack Overflow or respective owner

Related posts about html

Related posts about ui