including POST data with header("location: ")

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hagenaer
    New Member
    • Jun 2007
    • 1

    #1

    including POST data with header("location: ")

    Hello,

    I'm building a simple shopping cart to work with PayPal.
    I'd like to have the user post his basket to my page, validate the input, then redirect him _with his validated form data_ to PayPal using header("Locatio n:"). I could just have the user submit his form to PayPal, but then I don't have any control over what he submits (tweaking the form is easy). I can include the form data as a search string in the redirect URL but that creates an even easier way to change the form data.

    Anyone know if it is possible to include POST form data with a header("locatio n:") redirect? Or another way how I could create the smallest possibility the user can change the submitted data?

    Many thanks,
    Hagenaer.

    P.S. The form is dynamic, eliminating PayPal's encrypted form option.
  • pbmods
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    You can use the HTTP_Request class to accomplish this. See this thread for more info.

    Comment

    • Motoma
      Recognized Expert Specialist
      • Jan 2007
      • 3236

      #3
      You will not be able to do this with a header, however a curl call may work for you.

      Comment

      Working...