Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

jump menu, but not quite

Status
Not open for further replies.

mechro99

Programmer
Nov 27, 2001
54
US
Hi,

Thanks for all the help everyone on this board has provided. I've learned a lot here.

I've got a question about a variation on a jump menu idea. I would like to create an input text field in which a product serial number could be entered. When the submit button is pushed, the browser is directed a url composed of the serial number entered + .html. Is this possible?

The application is going to be on a CDROM catalog, so I didn't think asp server-side script w/ database would work.

Any ideas or tips?

Thanks,
Dan
 
Do something like this:

Code:
<html>
  <head>
  <script language="javascript">
  <!--
  function reDirect(p) {
    document.location = p + '.html';
  }
  </script>
  </head>
  <body>
    <form name="f">
      <input type="text" name="p" />
      <input type="button" onclick="reDirect(this.form.p.value);" value="go to page" />
    </form>
  </body>
</html>

*cLFlaVA
----------------------------
"Holy crip he's a crapple!
 
Thanks for the tip! This looks brilliant.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top