Searching for records

I am trying to create a form that will allow a user to enter an item
number and goto the show page for that item. I can create the form on
the page, but I do not know how to take the information given and pass
it to a link to show that item. Another problem I am going to run into
is that the show item is by mysql index number, rather than item
number, which is user assigned when first entered.
So I need to cross the number that is given to the form, to the index
number and return that value into a link.