How do i tie data from input text box to url?

want to have input text box were it is a 11 digit number (a track and trace type lookup)… when user puts in 11 digits, it will redirect to url that contains info on that inputted value.

for instance:
inputted value is:
12345678910
and when submit button is entered, the following url opens:

http://www.mydomain.com/12345678910.html

help.

thank you.