Click to See Complete Forum and Search --> : navigation code


jlasne
03-26-2006, 02:50 PM
I need to be able to have a text input box that will do the following.
I need to be able to link to different html files by having the visitor type in a code and then hit enter.
Example:
type in 127 in box and a file called information.html open in a new page

TiGGi
03-27-2006, 09:23 AM
you can do that using your serverside (coldfusion, php, asp..) and database (access, mysql, ms sql)
Create table with 2 fields (codes, pages)
create redirection page that will have query that will return pagename that matches your code

jlasne
03-27-2006, 12:19 PM
Thanks, but I received html code that does the job much faster and easier it is:

<script language="JScript">
function gohere(dest)
{
document.location.href="http://web address here.com/" + dest + "/index.htm";
}
</script>

<input type="text" name="box1"></input>
<input type="button" onclick="gohere(box1.value)" value="go"/>

ray326
03-27-2006, 07:02 PM
Of course that only works when the user has Javascript enabled.