Link Question

M

Marc Damon

I have a web address that stays the same except a section of it in
the middle of the address. Is there a way to include a form field
in a web page that someone can type in the section that changes, and
then that section would be put into the right place in the address,
and then that page will load?

This is the address:

http://www.gmbuypower.com/nvlWindowSticker.bp?
VIN=1G1ZT628X5F204158&BAC=113165&print=true

The Vin number section is what changes i.e. 1G1ZT628X5F204158

How can I have a form or a section that can be filled out by a user
(the vin number) and then the page will load.

Thank you for your help in advanced.

Marc Damon
 
M

Mark Fitzpatrick

Marc,
Sure it can be done, but you may have to do a little custom
scripting. Basically you would need to have a form on the page with a text
box of name VIN. The form must be set to GET method in order to appear in
the querystring portion of the URL. To make the rest of the page change
you'll need to poll a data source, such as a database for a matching VIN
number then dumping it to that section of the screen. If you're hosted on a
Windows server, you should have access to the Active Server Pages (ASP)
functionality. This will let you pull results from a database based on a
query and spit them out on the screen.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage
 
Top