+ Reply to Thread
Results 1 to 10 of 14

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

Hybrid View

  1. #1
    Join Date
    Jun 2005
    Posts
    26

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

    I purchased an affiliate program, and I needed to attach a specific field in the FORM to the transaction ID of the affiliate program. The affiliate program gives me this code to put on my webpage which will be put on my FORM page

    <img src="http://pokernetonline.com/affiliate/sale.php?&amount=100.00&transaction=C" style="visibility:hidden">


    Where it says transaction C, I need to put a FIELD on my FORM where they enter their account username, the name of the FIELD is 'account'. How could I make the transaction C become that unique acount name for each person?

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

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

    Hi,

    I don't quite understand...

    If that img tag goes onto the form, is the user supposed to click the image?

    If so, how does this identify you as the affiliate? Are you sure the "transaction=C" is not supposed to be your unique affiliate ID?

    If you really need for the user to enter their account username, and then you need to fill in their username as you mentioned, that's possible using a multi-page form. But it doesn't sound quite right to me.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    Jun 2005
    Posts
    26

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

    Well I do not put it on the FORM, I put it at the very top of the page on my FORM page. And transaction=C is just the transaction number. WHen I go into affiliate accounts, it shows transaction #=C in all the accounts. I just need that C to be a unique field on the FORM.


    Should I place that code in the FORM? or How should I do it?

  4. #4
    Join Date
    Jun 2005
    Posts
    26

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

    The actual page where my FORM is at:

    http://www.pokernetonline.com/registerform.html

  5. #5
    Join Date
    Jun 2005
    Posts
    26

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

    I am using this affiliate program: http://www.omnistaretools.com/

    And in the integration guide to integrate the product in mywebpage it gives me these instructions. I have contacted omni and they said it was possible but they dont give support like thought so I thought I would give out some money and post my question here since I am getting the variable from the FORM. Anyways heres what it says.

    Affiliate Redirecting When affiliates link to your online store, the links will look like the following, including variables for their Affiliate ID Number and the product group they are redirecting to:
    http://testing.omnisecureweb.com/affiliate/redir.php?affiliate=X&prodgroup=Y
    Saving the Affiliate ID
    When a customer goes to your site through this link, they will be redirected to the appropriate page for the given product group. At this point, to appropriately pay the affiliate for this click-through, you must keep track of the Affiliate ID Number with code you specify in your system.
    The ID Number is sent to you in two ways. It is appended to the product group's URL as a $_GET variable named "affiliate". It is also saved as a cookie named "affiliate_id". At the page users are brought to, you should save this variable in such a way that it can be accessed after checkout. (Note: If your online store is on the same domain name as your affiliate program, the cookie will persist and you will not have to save the ID Number in any special way.)
    Processing the Referral
    When a customer has completed their purchase at your online store, you should then send this information to your affiliate program. You can do so by including a call to the following URL:
    http://testing.omnisecureweb.com/affiliate/sale.php?affiliate=A&amount=B&transaction=C&recur=D
    You will need to have the page automatically fill in the variables A, B, C, and D as follows:
    affiliate A (required) - The Affiliate ID, as saved in the cookie "affiliate_id" or otherwise explicitly by you.
    amount B (required) - The amount of the purchase which will be credited to the affiliate.
    transaction C (optional) - The purchase's transaction ID, for record keeping in the affiliate program.
    recur D (optional) - The period of recurrence (in months) of this charge.

    You can link to that URL in any way you wish, but it is recommended that you do so with the following HTML for a hidden image:
    <img src="http://testing.omnisecureweb.com/affiliate/sale.php?affiliate=A&amount=B&transaction=C&recur=D" style="visibility:hidden">

  6. #6
    Join Date
    Dec 2003
    Posts
    3,907

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

    Hi,

    I'm still having trouble understanding exactly what's required. Do you need:
    1. An absolutely unique number that will never be duplicated?
    2. Do you need it to be automatically generated?
    3. Does it have to contain the value of some input field by the user (which is what you originally indicated)?
    You can see why I'm not sure of what you actually need.

    I had a look at your form, but couldn't see the img tag you mentioned anywhere.

    Is there a page for the affiliate program where I can read the instructions? Or can you post the relevent section here?
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  7. #7
    Join Date
    Jun 2005
    Posts
    26

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

    This unique number will be their TTR number about halfway down the FORM that the user will INPUT.

    It does not need to be automatic, the user inputs it.
    3.Yes

    And I removed the tag from the FORM page, I just put it up though, it can be found at the very top of the page. Thanks alot for helping me.

  8. #8
    Join Date
    Dec 2003
    Posts
    3,907

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

    Hi,

    Thanks. Now it makes sense.

    But, now you need to decide a couple of things:
    1. You need to grab the affiliate ID as part of this processing. You didn't mention that in your previous posts.
    2. Do you want to give them credit after they've submitted the form or just when the user arrives on your form page?
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  9. #9
    Join Date
    Jun 2005
    Posts
    26

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

    Gives them credit once they Submit the form

  10. #10
    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/

+ 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