How do I pass data from a web form to second page?

Discussion in 'Programming' started by Searchnology.com, May 9, 2009.

  1. #1
    I have a webform on my homepage www.surveycity.org

    I want to pass that data to the ClickBank order form when a user clicks submit.

    ClickBank's site advises the following for passing field data:
    Yes. You can pass the following QUERY_STRING parameters to the payment link and they will be written into the order form

    name = customer name
    email = customer email address
    country = customer ISO-3166 country code
    zipcode = customer postal code
    detail = product title

    I tried using this code on my form but it doesn't work.
    <form action="http://1.xxxx.pay.clickbank.net" method="<?php $_POST['Email'] ?>

    I think I am close so any help to get me past this is appreciated.
     
    Searchnology.com, May 9, 2009 IP
  2. jerrywijaya

    jerrywijaya Banned

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    just use this

    <form action="http://1.xxxx.pay.clickbank.net" method="post">
    <input type="hidden" name="name" value="the value here">
    <input type="hidden" name="email" value="the value here">
    <input type="hidden" name="country" value="the value here">
    <input type="hidden" name="zipcode" value="the value here">
    <input type="hidden" name="detail" value="the value here">
    <input type="submit" value="submit">
    </form>
     
    jerrywijaya, May 9, 2009 IP
  3. Searchnology.com

    Searchnology.com Peon

    Messages:
    451
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks, I just tried it but it didn't work :mad:

    http://www.surveycity.org/form_test.html
     
    Searchnology.com, May 9, 2009 IP
  4. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #4
    if they said you can do it via querystring, you can do it like

    http://1.xxxx.pay.clickbank.net?name=<?= $customerName; ?>&email=<?= $customerEmail; ?>&country=<?= $country; ?>&zipcode=<?= $zip; ?>&detail=<?= $details; ?> but them php variables must be defined :)
     
    ccoonen, May 9, 2009 IP
  5. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Use GET instead of POST
     
    Cash Nebula, May 10, 2009 IP