+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 14 of 14

Thread: Grabbing a Field in my FORM and using it too..

  1. #11
    Join Date
    Jun 2005
    Posts
    26

    Default Re: Grabbing a Field in my FORM and using it too..

    Well the docs that I gave you were from the website, here are the ones that it gives me when i login into my admin section on the affiliate website. It gives me the code I gave if i have no experience in PHP

    amount B (required) - The amount of the sale that will be used when computing the affiliate commission. This should be the total of the sale and not the total the affiliate will receive. When you setup an affiliate program you are going to enter a flat rate or a percentage that the affiliate will receive from this sale.
    transaction C (optional) - The purchase's transaction ID, for record keeping in the affiliate program. This is optional and only use for tracking and nothing else within the program.
    The code to insert into the thank you page if you do not have php experience to dynamically generate the affiliate id:
    <img src="http://pokernetonline.com/affiliate/sale.php?&amount=100.00&transaction=C" style="visibility:hidden">


  2. #12
    Join Date
    Dec 2003
    Posts
    3,907

    Default Re: Grabbing a Field in my FORM and using it too..

    Hi,

    OK. This means that you need to put the img tag on the page after the user has submitted the form. Does that makes sense?

    So, the first thing to do is to use the "good_template" feature to display a "thank you" page. That's where the img tag will go.

    You can read about that here: http://www.tectite.com/vbforums/showthread.php?t=194 and download the Sample Good Template.

    Next, you need to grab the affiliate ID from the redirect.

    Here's what you need to do:
    1. Rename registerform.html to registerform.php. This converts the static HTML page to a PHP script. Just rename it and try it again. You'll find it works exactly the same as it did before.
    2. You can now save the affiliate ID in a hidden field on your form like this:
      PHP Code:
      <input type="hidden" name="affiliateID" value="<?php echo $_GET["affiliate"]; ?>" />
    When you get to that point, you can load the form like this:
    Code:
    http://www.pokernetonline.com/registerform.php?affiliate=12345
    Then look at the source in your browser and you'll see the hidden field set to 12345.

    The final step is to put the img tag on the "good_template".

    On your template, add this:
    HTML Code:
    <img src="http://testing.omnisecureweb.com/affiliate/sale.php?affiliate=$affiliateID&amount=100.0&transaction=$TTR" style="visibility:hidden">
    where TTR is the field that the user inputs on your form and affiliateID is the hidden field created above.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #13
    Join Date
    Jun 2005
    Posts
    26

    Default Re: Grabbing a Field in my FORM and using it too..

    !!!!! I THINK IT WORKED! Wow, I have been trying to figure this out for 4 days posting to over 4 forums. Thanks RUssle, that subscription was worth it, Thanks again.

  4. #14
    Join Date
    Dec 2003
    Posts
    3,907

    Default Re: Grabbing a Field in my FORM and using it too..

    Hi,

    You're welcome.

    It seems that their instructions are designed for programmers. I don't know how you'd know what to do without being a programmer, and, in fact, a PHP or JavaScript programmer!
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Can "Reply To" EM Field be set to email field
    By CWD in forum FormMail Subscription Support
    Replies: 2
    Last Post: 26-Jul-2005, 05:56 AM
  2. Is the recipients field required in html form?
    By adam2003w in forum FormMail Subscription Support
    Replies: 1
    Last Post: 15-Jun-2005, 03:54 AM
  3. Form from address as Field Value email
    By Chek in forum FormMail Subscription Support
    Replies: 3
    Last Post: 12-Apr-2005, 10:07 PM
  4. Including entered form field in email subject?
    By camelot in forum FormMail Subscription Support
    Replies: 1
    Last Post: 23-Mar-2005, 08:52 PM
  5. Problem with Form Field
    By joe3366 in forum FormMail Subscription Support
    Replies: 5
    Last Post: 13-Jun-2004, 10:02 PM

Bookmarks

Posting Permissions

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