Results 1 to 3 of 3

Thread: I dont even know how to title it :)

  1. #1
    Join Date
    Jun 2010
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default I dont even know how to title it :)

    Ok, here's my issue:

    I have an order confirmation page (A), an order process page (B) and then an external payment gateway (C).

    So I need to have the user confirm the order on A, I'm POST-ing all the info to B (writes the order in the database) but then I need to POST again all the info to C.

    The thing is B is invisible for the user, the page just writes what have been POST-ed from A and then just redirects to C.

    How can I do this? Or do you have a better idea of a road map?

    God bless you

  2. #2
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default

    You could use sessions or cookies with a header, include, and/or require.
    Corrections to my coding/thoughts welcome.

  3. #3
    Join Date
    Nov 2006
    Location
    Northeast USA
    Posts
    408
    Thanks
    8
    Thanked 30 Times in 28 Posts

    Default

    Yes, you can use sessions, on page B just write
    PHP Code:
    session_start();
    $_SESSION['var'] = $_POST['var'
    Then on page C:
    PHP Code:
    session_start();
    echo 
    "You submitted ".$_SESSION['var']." on page A"
    -Ben -- THE DYNAMIC DRIVERS
    My Links: My DD Profile||My Youtube Video Tutorials||DD Helping Coders||DD Coders In Training
    I told my client to press F5, the client pressed F, then 5, *facepalm*

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
  •