I have two input fields for example's sake called A and B.
What i want, is to somehow derive a hash or total of these inputs, and pass that to a php function which will give me one of a set of results, but consistently.
Heres what i think it should look like
pseudo code
$a = $_POST[a];
$b = $_POST[b];
$pre = "$a$b";
// Put both inputs together as a single string
$hash = mashup($pre);
// Do something that creates a "hash" of the inputs given.
$output = magicfunction($hash);
// Takes the "hash" and uses some magic method to match it to a particular output
Now no matter what is put in the inputs, the output is one of say 20 things. If the user inputs something different, the out put will be different, but if they input the same thing, it will consistently return the same thing. Its possible for another input to output the same information, but the method which it picks what to output needs to be solid so that the same input will result in the same output.
An example of what im talking about(but not what im trying to make), is those sites where you enter your name and it gives you some novelty name, like pron star name, or rock star name, or whatever. Its not just random, if you enter the same name you get the same result, but different names can also give you that result.