Skip to main content
Inspiring
August 20, 2007
Question

Pointing customers to correct product

  • August 20, 2007
  • 8 replies
  • 484 views
I'm looking for solutions

I have resellers that want a general ID to get to specific products on a
site. They want it simple

I imagine they would want the link to look like:

http://www.domainname.com/111 something that's very simple

I use ASP so I would normally have something like
http://www.domainname.com/detail.asp?ID=25 which is a lot more convoluted.

With 6000 products I couldn't have a page for each.

Do any of you know of some magical way of making the link more simple?

Thanks
This topic has been closed for replies.

8 replies

Inspiring
August 21, 2007
Ok, Thanks.

Murray *ACE* wrote:
> OK, then the Request.Querystring() will retrieve the contents of that URL
> parameter.
>
Inspiring
August 21, 2007
OK, then the Request.Querystring() will retrieve the contents of that URL
parameter.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Lee" <lee_nospam_@artjunky.com> wrote in message
news:faenmf$n5d$1@forums.macromedia.com...
> It's a Windows server, I use ASP.
>
> Murray *ACE* wrote:
>> What server scripting can you use on this host?
>>
>> It works because the default page in that folder gets the "12345" as a
>> URL variable, and can retrieve it with $_GET, or with
>> Request.Querystring(). The link is actually shorthand for
>> '' http://www.example.com/<defaultfilename>?12345, but since it's the
>> default file anyhow, you can omit its name.
>>
>> Once you have that value, you can redirect as needed.
>>


Inspiring
August 21, 2007
VBScript


Lee wrote:
> It's a Windows server, I use ASP.
>
> Murray *ACE* wrote:
>> What server scripting can you use on this host?
>>
>> It works because the default page in that folder gets the "12345" as a
>> URL variable, and can retrieve it with $_GET, or with
>> Request.Querystring(). The link is actually shorthand for
>> '' http://www.example.com/<defaultfilename>?12345, but since it's the
>> default file anyhow, you can omit its name.
>>
>> Once you have that value, you can redirect as needed.
>>
Inspiring
August 21, 2007
It's a Windows server, I use ASP.

Murray *ACE* wrote:
> What server scripting can you use on this host?
>
> It works because the default page in that folder gets the "12345" as a URL
> variable, and can retrieve it with $_GET, or with Request.Querystring().
> The link is actually shorthand for
> '' http://www.example.com/<defaultfilename>?12345, but since it's the default
> file anyhow, you can omit its name.
>
> Once you have that value, you can redirect as needed.
>
Inspiring
August 21, 2007
What server scripting can you use on this host?

It works because the default page in that folder gets the "12345" as a URL
variable, and can retrieve it with $_GET, or with Request.Querystring().
The link is actually shorthand for
'' http://www.example.com/<defaultfilename>?12345, but since it's the default
file anyhow, you can omit its name.

Once you have that value, you can redirect as needed.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Lee" <lee_nospam_@artjunky.com> wrote in message
news:fad18d$ldj$1@forums.macromedia.com...
> Actually, now that I think of it, that "?" mark is probably too much. But
> if I did try it this way, how does one pull in a specific product using
> that ID? I'm more accustomed to seeing something like "?ID=12345"
>
> In other words, how would I tell my recordset that I want this without
> giving it a variable name?
>
> Lee wrote:
>> So if someone used ?12345 I could have an "if statement" to test this and
>> if true, go to another page? That page would then pull in the session
>> variable that would load the product?
>>
>> Or, I could have the default page an empty forwarding...wait, search
>> engines don't like that.
>>
>> Murray *ACE* wrote:
>>> You could do -
>>>
>>> http://www.example.com/?12345
>>>
>>> and that will pass the value 12345 to the default file in that folder.
>>>


Inspiring
August 20, 2007
Actually, now that I think of it, that "?" mark is probably too much.
But if I did try it this way, how does one pull in a specific product
using that ID? I'm more accustomed to seeing something like "?ID=12345"

In other words, how would I tell my recordset that I want this without
giving it a variable name?

Lee wrote:
> So if someone used ?12345 I could have an "if statement" to test this
> and if true, go to another page? That page would then pull in the
> session variable that would load the product?
>
> Or, I could have the default page an empty forwarding...wait, search
> engines don't like that.
>
> Murray *ACE* wrote:
>> You could do -
>>
>> http://www.example.com/?12345
>>
>> and that will pass the value 12345 to the default file in that folder.
>>
Inspiring
August 20, 2007
So if someone used ?12345 I could have an "if statement" to test this
and if true, go to another page? That page would then pull in the
session variable that would load the product?

Or, I could have the default page an empty forwarding...wait, search
engines don't like that.

Murray *ACE* wrote:
> You could do -
>
> http://www.example.com/?12345
>
> and that will pass the value 12345 to the default file in that folder.
>
Inspiring
August 20, 2007
You could do -

http://www.example.com/?12345

and that will pass the value 12345 to the default file in that folder.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================


"Lee" <lee_nospam_@artjunky.com> wrote in message
news:facvtm$jvq$1@forums.macromedia.com...
> I'm looking for solutions
>
> I have resellers that want a general ID to get to specific products on a
> site. They want it simple
>
> I imagine they would want the link to look like:
>
> http://www.domainname.com/111 something that's very simple
>
> I use ASP so I would normally have something like
> http://www.domainname.com/detail.asp?ID=25 which is a lot more convoluted.
>
> With 6000 products I couldn't have a page for each.
>
> Do any of you know of some magical way of making the link more simple?
>
> Thanks