Basic question from a Newbie

Discussion in 'HTML & Website Design' started by hcbeggar, Jan 21, 2009.

  1. #1
    Hey guys,

    I asked this question in another section and got no responses. Perhaps it was in the wrong section. This is probably extremely basic for most web developers but I am a novice so my apologies. My question is:

    is there a way to have a user enter in data into a form and have that auto populate into an affiliate link sub id?

    For example: User comes to a page and enters their email address...then clicks submit and that redirects to another page with my affiliate banner/ad/link that has that email address autopopulated into the subid.

    I am sure that is possible but does anyone know how to do that. I would be very greatful for an answer on that cause I have been searching everywhere and havent found the answer on that one.

    thanks again
    ~eric
     
    hcbeggar, Jan 21, 2009 IP
  2. Corey Bryant

    Corey Bryant Texan at Heart

    Messages:
    1,126
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Are you the 'merchant' and setting up affiliates to sell your products / services?
     
    Corey Bryant, Jan 21, 2009 IP
  3. hcbeggar

    hcbeggar Member

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    I am an affiliate marketer trying to promote another merchants program with my own affiliate link.
     
    hcbeggar, Jan 21, 2009 IP
  4. Corey Bryant

    Corey Bryant Texan at Heart

    Messages:
    1,126
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    0
    #4
    So when someone enters their email address, where is that going? Are you storing that email in a database? If so, what is the database? Are you using PHP, ASP, .NET to help communicate with this database?

    For example, if you are using the JMail ASP E-Mail component, you could add
    Response.Redirect "http://www.example.com"
    Code (markup):
     
    Corey Bryant, Jan 21, 2009 IP
  5. hcbeggar

    hcbeggar Member

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #5
    no no...These people are already in my database.

    Essentially what I am doing is emailing my database daily. For example, I might email them with the "Paid Survey of the Day". I want them to then come to a page where they can enter their email address and then click submit...that would then lead them to a page that already includes the affiliate program that I am promoting. When they get to that page, I want the email address that they submitted on the previous page to automatically populate if possible as a sub-id in the affiliate ad I have on the next page.

    I think a company called Dollar Surveys (dot) net is already doing something similar but I am not 100% sure since I am somewhat retarded when it comes to something like this.
     
    hcbeggar, Jan 21, 2009 IP
  6. hcbeggar

    hcbeggar Member

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #6
    how about this question?

    Is there an html code that will allow me to transfer a variable to a URL.

    For example: I could have someone enter my webpage www.Hiccups(dot)comand fill in their email address in a field...then when they click submit, it redirects them to a new webpage with their email address added to the end of the url www.Hiccups(Dot)com/info@hotmail(dot)com

    Is there anyone who could please teach me how to do that?
     
    hcbeggar, Jan 22, 2009 IP
  7. kslokesh

    kslokesh Well-Known Member

    Messages:
    153
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #7
    I think must use JavaScript for this purpose.. I am not a programmer, but I know that javascript can be used for this purpose.. I will tell u the pseudocode and you make it into the statements in javascript..

    Assign the textbox value(email address) to a variable2 and nextpage url(survey URL) into another variable1 and combine it to get a final url variable1+symbol+variable2 .... you may need to put ? or & or = other symbols in the place of symbol if needed..

    you can use the window open method for the final url to open in an new window.. I dont know the exact command to make it open in the same window (may use redirect command)..

    Anyhow.. all the best for you project..
     
    kslokesh, Jan 22, 2009 IP
  8. plugandplay

    plugandplay Peon

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    It sounds like you want them redirected to someone elses website (the one you're promoting) after they fill in info on your site? If so the problem for you will be that you don't control the other website.

    If your a "super affiliate" with them (the program your promoting) they 'may' allow you to have a copy of their page on your server. Then you might be able to do this.

    Good luck
     
    plugandplay, Jan 22, 2009 IP
  9. hcbeggar

    hcbeggar Member

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #9
    Ok, I am back and even further in the pile of mess than ever.

    I figured out how to pass variables from one page to another and to a url. So my question still stands. Is there a way to pass variables out of my url or from a section of the web page and place it into the subid section of an affiliate link.

    So there is no confusion at all this is my goal.
    1) Have a person fill out form on h**p://www.surveybeggar.com/test.html (It's a bit crude looking right now)

    a)So I fill out my Name: Eric & My Email: test@test<dot>com

    2) when that person fills out the form they are redirected to a new page with the URL:
    h**p://www.surveybeggar.com/test2.html?FirstName=Eric&Email=test@test.com

    a) as you can see the first name & email are added to the domain but also on that page I have passed those two variables as text.

    Now here is what I want to have done....There are two affiliate banner ads on this page. Currently they are just my normal affiliate codes WITHOUT sub ids. However, I want to add the email variable that is in the url &/or on the page above as a sub id in the banner ads.
    Can someone please help me learn how to do this or give me the snippet to add to the end of my affiliate banner code that will populate the email variable?

    thanks for any help.
    ~eric
     
    hcbeggar, Jan 24, 2009 IP
  10. kslokesh

    kslokesh Well-Known Member

    Messages:
    153
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #10
    Use JavaScript for it.. I know only a little basics of javascript.. You can do the thing which you mentioned using javascript.. Ask any programmer to do it.. Or just Read some JavaScript, HTML Form and Javascript Form and Redirect sections in any online tutorials and you can code it yourself..

    Have a nice JS Time..
     
    kslokesh, Jan 24, 2009 IP
  11. hcbeggar

    hcbeggar Member

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #11
    erggggg!..yeah, well thanks for the "tip" but, I have been doing that for the past 3 days and I can't seem to find the answer. Hence why I am throwing myself on the mercy of the html programmers here in the digital point forum.
     
    hcbeggar, Jan 24, 2009 IP
  12. hcbeggar

    hcbeggar Member

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #12
    any ideas?
     
    hcbeggar, Jan 24, 2009 IP