61 users online (1 members and 60 guests)  


  Results 1 to 5 of 5

Related

  1. Need help with tracking # of logins    Forum: ASP Forum
    Replies: 3
  2. tracking link clicks    Forum: PHP Forum
    Replies: 15
  3. Domain Forwarding tracking    Forum: General Discussion
    Replies: 1
  4. Domain Forwarding tracking    Forum: Websites For Sale
    Replies: 0
  5. E-mail Tracing And Tracking Website For Sale    Forum: Websites For Sale
    Replies: 1
  1. #1
    alkaline's Avatar
    New User

    Status
    Offline
    Join Date
    Feb 2003
    Posts
    2

    Tracking web forms

    This is a great forum, definetly bookmarked.

    Quick question that's stumped me tonight,

    Let's say I send you a URL to my webform: abc.com/form.html

    Is it possible, if I send you a link called abc.com/form.html?Jack

    (question mark maybe not the right char)

    that I can somehow pass "Jack" along with my other name:value pairs?


    I would ideally like to pass along the To: email address of the person I email a URL to, pass that back into the form as a hidden field. My only idea is to email you the URL as :

    abc.com/form.html?jack@bla.com

    (obviously with different ASCII codes for things)

    Any ideas for this or better tracking mechanisms?

  2. #2
    benzden's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Feb 2002
    Location
    San Antonio, Texas
    Posts
    652
    Here's a URL I just used in an email response to some friends:

    http://www.twmacinta.com/detector/title-gen.html?lang=en&title=XXX+site


    Note the items following the ? (question mark) in that URL. The lang and title parameters are being passed along. The key is that at the web host server for the site involved there is some webmaster designed process that catches and acts upon those passed parameters.
    In this case, that site's webmaster has created the http://www.twmacinta.com/detector/install.php program to do that. (His web host server allows .php programs.)

    What do have that's going to catche and act upon the parameters you want passed? (Sometimes the web host provides FORMs or other programs to accomplish varying generic objectives - does your host have those or are you going to provide them to a host that allows them?)
    Last edited by benzden; 02-04-2003 at 11:46 AM.

  3. #3
    alkaline's Avatar
    New User

    Status
    Offline
    Join Date
    Feb 2003
    Posts
    2

    Looks promising

    Do I undersand correctly, that when I insert " ?origID=jack " (minus quotes) into a URL, once the person is completed the form, there will be a name:value of origID=jack passed along into my CGI script? Do i have to "decalre" origID anywhere in my form or script?

    My purpose is to link the results with the sender, by giving them unique URLs. However, the identifier should not have any effect on the form. The form should stay the same for everyone.


    Thanks for replying!

    Al

  4. #4
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Not quite. Benzden is saying that the same process that catches the result of your form input has to be used on the form page itself to create a 'hidden' form input containing the information you sent with the url string.

    this means using a server-side language on the form page, eg

    PHP Code:
    <input type="hidden" name="EmailString" value="<?=$_GET['urlStringName']?>
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  5. #5
    benzden's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Feb 2002
    Location
    San Antonio, Texas
    Posts
    652
    Do i have to "decalre" origID anywhere in my form or script?
    Of course, but inside the script at the server-side end. I think everything after the "?" is ignored by everyone else except the server side program accepting it - looks to be much like the command process used by most programs to pass values from other sources.

    (I've never done any of this type of programming on the internet - have done a lot in "basic language" type programs before the internet got going in the past decade.)



Tags for this Thread