How to Post to a Webform using links with user parameters

Discussion in 'Programming' started by Searchnology.com, Jul 19, 2007.

  1. #1
    I would like to send co-registration subscribers a confirmation email that has a link in it. I would like to add all of their subscription information in the link as parameter values and when clicked it will http post the data to a webform, removing the necessity to prepopulate a form or have the user retype type the data in a form.

    Does anyone know how or if this is possible?
     
    Searchnology.com, Jul 19, 2007 IP
  2. tbe

    tbe Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    The easiest way is to use http Get not Post. So send them a link like:

    www.yoursite.com/reg.php?name=bob&email=test@test.com...

    Like that.

    Then in reg.php just reference $_GET['name'] and $_GET['email'] etc.

    Does that answer your question
     
    tbe, Jul 20, 2007 IP
  3. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #3
    it is better to use a key other than simply the username and email as this is fairly guessable. Either encrypt one part or the other or if your db assigns a GUID to a user then use this
     
    AstarothSolutions, Jul 21, 2007 IP