1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Pre Filling a Form (inserting your affiliate ID into a form)

Discussion in 'Black Hat SEO' started by hitch, Feb 5, 2011.

  1. hitch

    hitch Regular Member

    Joined:
    Aug 17, 2009
    Messages:
    217
    Likes Received:
    366
    I'm a member of a new affiliate company that required the user to enter my personal referral code in their sign up form.

    As of right now there is no way to have the referral code in the actual web address like most affiliate companies do.

    Is there a way I can have my affiliate code automatically inserted into the form? You can't sign up without the code, but at the same time I want the code to be entered.

    I know I can't manipulate the companies website, but would I have to use frames or something?

    I know there is a way!
     
  2. dichotom

    dichotom Elite Member

    Joined:
    Dec 9, 2008
    Messages:
    1,911
    Likes Received:
    544
    Off the top of my head I wonder if you could host a form on your site that posts to their form processor instead of using their form at all.
     
  3. hitch

    hitch Regular Member

    Joined:
    Aug 17, 2009
    Messages:
    217
    Likes Received:
    366

    I was actually just thinking about that.

    So basically, they would fill out my form, Email zip etc

    when they hit submit, it will automatically fill out the form for the referral, my code is entered and bam they are a member.

    I'm sure this can be done with HTML frames, I've never coded frames but I think soon I'm going to be figuring it out...

    or odesk, here I come (If it's going to require too much time):p
     
  4. dichotom

    dichotom Elite Member

    Joined:
    Dec 9, 2008
    Messages:
    1,911
    Likes Received:
    544
    Actually what I meant was that forms are usually processed by a .cgi program or something hosted on their server. If you took their form code and put it on one of your pages and then changed the variable in the form code for affiliate ID to be hard-coded to your affiliate ID and just removed the box on the form that the person fills out, it would always submit your affiliate ID. You would host the form on your own page and it would still submit to their forms processor. No frames or anything like that.
     
  5. hitch

    hitch Regular Member

    Joined:
    Aug 17, 2009
    Messages:
    217
    Likes Received:
    366

    Ahh, I see so just take the java script, place it on my site and hard wire the form with my affiliate code. I'll try this, see what I can come up with :)
     
  6. dichotom

    dichotom Elite Member

    Joined:
    Dec 9, 2008
    Messages:
    1,911
    Likes Received:
    544
    One other thought is, have you asked their support if there is a way to do what you want already in place?
     
  7. senior

    senior Regular Member

    Joined:
    Jul 20, 2010
    Messages:
    219
    Likes Received:
    101
    Why would you promote an affiliate company that can't pass the referrer in their link? Sounds really shady.

    As far as your idea to submit from off site goes, you will have a really hard time trying if it is not set up on their end to accept your posts to their form processor.
     
  8. hitch

    hitch Regular Member

    Joined:
    Aug 17, 2009
    Messages:
    217
    Likes Received:
    366
    how can I find out where their "signup.php" is located, since it does not show a /dir/signup.php I assumed it is in the main site directory, however when I test it, the form I don't get the confirmation email.

    everything is done in pop up form on their site.

    Main site-->pop up form, on submit---> receive email and a popup confirmation page
     
  9. hitch

    hitch Regular Member

    Joined:
    Aug 17, 2009
    Messages:
    217
    Likes Received:
    366
    I have my reasons, I know it sounds really dumb.. but.. I have my reasons;)
     
  10. hitch

    hitch Regular Member

    Joined:
    Aug 17, 2009
    Messages:
    217
    Likes Received:
    366
    basically it appears the signup.php I'm using is wrong, when I paste it into a browswer, i get redirected to the same site my form is redirecting me to.. so I need to find the exact location of their signup.php that the form is using
     
  11. hitch

    hitch Regular Member

    Joined:
    Aug 17, 2009
    Messages:
    217
    Likes Received:
    366
    yes, I actually asked if they could just have my affiliate code in the web address a week+ ago but they never responded.

    My main fear is that people don't manually enter my code, or they just enter a random number (you know how haters are) and then I lose the credit..

    They never got back to me, so now I'm trying a work around
     
  12. dichotom

    dichotom Elite Member

    Joined:
    Dec 9, 2008
    Messages:
    1,911
    Likes Received:
    544
    Can you right click on the pop-up and view source?
     
  13. squark

    squark Junior Member

    Joined:
    May 22, 2008
    Messages:
    156
    Likes Received:
    1,206
    View the source of the signup page and look for a form tag. That's the part you'll re-host on your site. Importantly, you'll want to make sure the action attribute points to the fully-qualified url (i.e. complete with http and the domain), not a relative url.

    Then you can test it out by submitting your form to their servers. They're going to get a different referrer when you post from your page. And they'll know you're doing something different. Often times they don't care (they just want the lead). But if you're trying to do this in a transparent way it isn't going to happen.

    Regarding frames or javascript into their page... forget about it. All modern browsers have cross-site scripting restrictions. That's a no-go. The only way it could work is if you could get your users to install a BHO or other software on their machine. I don't know what kind of trust you have with your users... but I'm assuming that's a non-starter as well.

    Outside of that you can always try passing your code in the url as a parameter that matches the name of the edit box on the form. Sometimes that works... though not often. It's super easy to test, though. It will either work, or not. Nothing ventured, nothing gained.
     
  14. squark

    squark Junior Member

    Joined:
    May 22, 2008
    Messages:
    156
    Likes Received:
    1,206
    I just though of something else you could try if they won't let you post the entire form to their server from your site...

    Usually when someone only partially fills in a form they are kicked back to the form with the fields still filled in from the rejected submission and they can finish filling it out. If you want the actual form filling and submission to originate at there site then just make your link to their page a form submit with just your affiliate code. The form should be rejected as incomplete and come back to be completed *with your affiliate code already filled in*.

    This would be super easy to test (since you don't have to replicate the whole form, just one field). Again, it will either work or it won't. The biggest things I'd be concerned about is making sure the error page is the same as the original page (if it's a sales page) and not a stripped-down page.

    Test it and see. Could be an easy solution to your problem.