View Full Version : Grabbing info from third party sites
When someone clicks on a link on my site (ex. http://thirdparty.com/index.php?ref=1234), it would send them to that site but where the user could sign up. Once they have completed signing up, it grabs that persons ref number and also remembers the original ref number who referred them and returns them to my database. Anyone know how to do that?
yes. a guy I work with did something for an affiliate-type system.. but I can't exactly copy and paste.
what you would do is store the information in a cookie(or session if you prefer) and then when you process the form grab the cookie information.
maybe someone else can fill in the blanks from here.
I need to grab the info from their site so I am guessing I would have to do some sort of page with their page inside it or something.
you could allow remote mysql users which could lead to abuse...or write some curl stuff which posts to your site after the post they fill out the form on the ref=1234 site.
are the sites you link to 'affiliates' or are they just random sites?
just to be clear:
- people click a link on your site...
- it redirects them to a new site(a site you do or do not have access to?)
- the person has to fill out a form
- after the person fills out a form, you want to know they filled out the form
are these remote sites you have access to? otherwise you probably wouldn't be able to record that they filled out the form.
Yes, all correct. The other sites are affiliates kinda and I need to get the users ref id that signed up under the one from my link. The users ref id is shown on the page after they sign up on the affiliate site.
http://www.mysite.com has http://www.somesite.com/index.php?ref=2325 on it. When a user clicks on the link on my site, it would take them to the site, and it remembers the ref=2325. Then once the user signs up it will collect their ref id off the somesite.com account page and then add it to my database and mark them as signing up under ref 2325.
you need some server2server operation for that. Easiest is probably opening a socket on your site from site2, and then post the signupdetails from site2 to a formhandlingpage on your site.
Or set up an XMLserver and then haven the other site use an XMLclient to send the data to your server.
I have no access to their server. I just want to get the current REF ID and the new users REF ID and return them to my database. That's all.
what exactly do you expect from us?
to transfer the new ID automatically, you need a server2server action and i already told you what the most likely options are then. all of them involve that you or the owners of site2 place some extra code on their server, and execute that code after the registration is processed.
a simpler (less userfriendly and safe method) is that the awners of site 2 display a link back to your site, with the new referenceID in the querystring. If the client hits that link, then you can grab it. If this links opens a new window or so, then you could grab the referenceID from the querystring and then just close the window (possibly after some comfirmationmessage or so)
if you don't wan't that or if the owners of site2 don't want that, then your only other options are that the client goes back to your site and types it in.
Those are not the only ways. I know it can be done another way just can't figure out how to do it.
these aren't indeed not the only ways, but they are the easiest and most commonly used ways. and up till now, we haven't got any usefull feedback from you to figure out what's wrong with these approaches.
I can't put anything on their server that's why the ways you gave me won't work. I'm sure I could include the page or use curl somehow but not sure how.
When a user clicks on a referral link on my site, I need to know that they completed signing up on it. (ex. http://refsite.com/?ref=1234)
I also need to know if I can what the new users ref number is which is displayed on the refsite once they sign up.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.