Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11
  1. #1
    New Coder
    Join Date
    Oct 2002
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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?
    Last edited by X-MC; 10-25-2004 at 07:09 AM.
    Luke

  • #2
    fci
    fci is offline
    Senior Coder
    Join Date
    Aug 2004
    Location
    Twin Cities
    Posts
    1,345
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #3
    New Coder
    Join Date
    Oct 2002
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Luke

  • #4
    fci
    fci is offline
    Senior Coder
    Join Date
    Aug 2004
    Location
    Twin Cities
    Posts
    1,345
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #5
    New Coder
    Join Date
    Oct 2002
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

    So like...

    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.
    Luke

  • #6
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

  • #7
    New Coder
    Join Date
    Oct 2002
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Luke

  • #8
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

  • #9
    New Coder
    Join Date
    Oct 2002
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Those are not the only ways. I know it can be done another way just can't figure out how to do it.
    Luke

  • #10
    raf
    raf is offline
    Master Coder
    Join Date
    Jul 2002
    Posts
    6,589
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.
    Posting guidelines I use to see if I will spend time to answer your question : http://www.catb.org/~esr/faqs/smart-questions.html

  • #11
    New Coder
    Join Date
    Oct 2002
    Posts
    30
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

    -Explaination-
    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.
    -------------
    Last edited by X-MC; 10-25-2004 at 05:53 PM.
    Luke


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •