How to make a dynamic hyperlink

liunx

Guest
Hi,
I am new here and I have a problem with assigning dynamic id on hyperlink on html.

For example, say I have assigned a hyperlink from my static website to a dynamic website by:
".../index.cfm?id=0&fuseaction=browse&pageid=28"

The problem is that the id number 0 should be different each time a visitor visit a specific webpage on some-company.com from my static website. I wonder if anybody can help me out with that. What I am trying to archieve is to make the hyperlink to some-company.com and the id number will be that of whatever the some-company.com assigned.

Thanks...brujimOriginally posted by brujim
What I am trying to archieve is to make the hyperlink to some-company.com and the id number will be that of whatever the some-company.com assigned.

First of all, welcome to the forums.

Second, I'm confused (not a new experience). You're trying to make a hyperlink to what? Some-company.com is assigning IDs? To what?Thanks for your prompt reply Aronya1. I am sorry if it sounds confusing. Let me explain my problem again.

Assume that I have a static website: <!-- w --><a class="postlink" href="http://www.my-website.com">www.my-website.com</a><!-- w -->

Also assume that I am trying to link to a dynamic website: <!-- w --><a class="postlink" href="http://www.some-company.com">www.some-company.com</a><!-- w -->. Note that every page on some-company.com comes with the hyperlink like "www.some-company.com /index.cfm?id=0&fuseaction=browse&pageid=28". So the id number is assigned for every visitor when they browse through some-company.com. Every page the visitor visits will correspond to the pageid. Say, right now the visitor is assigned id number 34. The pages the visitor browse will be something like: "www.some-company.com /index.cfm?id=34&fuseaction=browse&pageid=28", "www.some-company.com /index.cfm?id=34&fuseaction=browse&pageid=54", and you get the idea.

If another visitor visits some-company.com again the id number becomes 35. I have no control of the id number assigned by some-company.com.

What I am trying to archieve is this:
When a visitor visits my-website.com, I want to make the a hyperlink from my website to a specific page, say "Contact Us", on some-company.com to bring the visitor to some-company.com.

My question is: since the id number on some-company.com keeps changing, how can I make it synchronize with whatever the id number on some-company.com is assigned at that time.

Note: I have no problem assigning the pageid because they are kind of static, say "Contact Us" page on some-company.com is always having the pageid=3.

To sum up, the problem here is on the synchronization of the id number.

I hope I am clear this time.

Thanks...brujimOK, I think I understand at least part of what you need, now.

Web surfer visits some-company.com. They are assigned visitor #35 as an ID. They later visit your site. You want to know what their visitor ID# is for s-c.com. Correct me if this is wrong. If correct, it seems to me that you need to be able to read the cookie set by s-c.com on the user's machine.

This is the part I'm still fuzzy on:
My question is: since the id number on some-company.com keeps changing, how can I make it synchronize with whatever the id number on some-company.com is assigned at that time.
First of all, the ID# on s-c.com probably isn't changing for that user, and probably not for the pages they visit. Otherwise, s-c.com couldn't track the visitor thru their site - what's the point of assigning an ID# otherwise? So, what are you asking here? How can you make what synchronize with the ID#?
To sum up, the problem here is on the synchronization of the id number.Do you want the surfer to have the same ID# on YOUR site as they have on s-c.com?Ok, let's put it in this way. A visitor visits my site, then I will have a hyperlink links to the "Contact Us" page on s-c.com.

As I have explained before, s-c.com will assign a new id (they do this by increment 1 from the id number assigned to their previous visitor, say the id for previous visitor was 123 who happened to be in Contact Us page like "www.some-company.com /index.cfm?id=123&fuseaction=browse&pageid=3" ).

Now, when a new visitor comes to my website and clicks on the hyperlink to "Contact Us" page for s-c.com, is there a way to make the id number 124 like "www.some-company.com /index.cfm?id=123&fuseaction=browse&pageid=3"? There might be some mechanism to access s-c.com counter.

Hope I am clear this time.

Thanks...brujimThe user clicks the link to s-c.com from your site. They will be taken to s-c.com. Won't they then be assigned that ID#? Sounds like you're trying to assign a visitor ID for someone else. I'd be pissed if you were trying to do that with my site. Assuming I'm wrong, what are you going to do with these ID numbers?"The user clicks the link to s-c.com from your site. They will be taken to s-c.com. Won't they then be assigned that ID#?"
> They will be assigned a new id only when they click on other pages on s-c.com after I bring them to s-c.com. So, the first link will be a static link with the id I assigned (this is because I want to direct visitor to a specific page) and I wonder if there is a way to do a dynamic assigned id.

"Sounds like you're trying to assign a visitor ID for someone else. I'd be pissed if you were trying to do that with my site. Assuming I'm wrong, what are you going to do with these ID numbers?
"
> That's true. What happen if within the same site, is there any way to get the synchronized counter. See, my problem here is that there are both static (like s-c.com/hello.htm) and dynamic pages (like index.cfm?id=123&fuseaction=browse&pageid=3) on s-c.com and I am just afraid that the id will screw up if the visitor accesses the dynamic page then moves to static page and vice versa. This is an ecommerce site and the shopping cart will screw up with different id number. SO, I want to make sure they are the same.OK. This is starting to sound like you are an affiliate for s-c.com & want to make sure you get paid when you send someone to their site & they buy something. Am I right?
They will be assigned a new id only when they click on other pages on s-c.com after I bring them to s-c.com. So, the first link will be a static link with the id I assigned I'm that close (holds finger & thumb 1 milimeter apart) to certain you can't do what you want. Any ID you assign will only be relevant to YOUR site. You cannot (should not) assign an ID for someone else's site.
I am just afraid that the id will screw up if the visitor accesses the dynamic page then moves to static page and vice versa. It won't, but the only ID that will be used on the other site is the ID that THEY assign.
 
Back
Top