This is best done with a server-side script (e.g. PHP) rather than client-side javascript.
If there are just a few URLs you might use IF/ELSE conditions:
CODE
if($userinput=='Aba992aa')
{
$url='566.html';
}
else if($userinput=='BBb224bb')
{
$url='380.html';
}
else if(...)
...etc
If there's a match, redirect to the URL using the Location header:
http://php.net/manual/en/function.header.phpBut if there are many URLs, you could use an associative array to map each userinput/URL as a key/value pair instead of lots of IF/ELSEs:
CODE
$userinput_url=array(
'Aba992aa'=>'566.html',
'BBb224bb'=>'380.html',
);
Then use the foreach() function to compare each array key with the text the user submitted, and redirect with the Location header. See
http://php.net/manual/en/language.types.array.php http://php.net/manual/en/control-structures.foreach.phpQUOTE
the part that's making me really concerned is that when I lay it all out how can I get it in the page quickly and easily.
Just let the search form submit to the PHP script (that can be a separate file with its own URL, as specified in the form's ACTION attribute).
QUOTE
I don't want to have to send them a linked xls file that has hyperlinks to our log in pages on our website
Is this intended as a kind of password login? Then it's better not redirect the user, since he could then share the URL with others. It's better to let the server-side script generate the entire protected content. You could also use HTTP authentication, see
http://htmlhelp.com/faq/html/publish.html#password