tags:

views:

51

answers:

1

I have been asked by a client something I have never really come across before and wondered if anyone could classify it for me, so that I can work out how to design it.

Basically they would like a box in which the user types in a code, the first part of this code will determine which page they are then sent to. This page will not have search results, I see it as a more complicated version of a button with a link.

Please could you help?

Many thanks

+1  A: 

You may implement this as a table search. Say the table is something like:

{"133"=>1, "147"=>1, "158"=>2, "342"=>3}

So that the code 133 sends the user to page 1, the code 147 - also to page 1, the code 158 to page 2 etc. Your program will need to extract the code (say from a text box), look it up in the table, and send the user to the proper page.

This is similar in spirit to a Dispatch Table. If you specify a preferred programming language, I may be able to find more specific information.

Yuval F
Thank you Yuval, I have not come across this method before, do you know where I can find more information on it please?
Lisa
Please see my edited answer.
Yuval F