I have a problem I can't find a solution to since 2-3 days now.
I know about cUrl and fsockopen() and sessions.
The problem is as follows.
I have a page for payment which asks which payment method the user wants to choose, then this form is posted to the same page for handling and the handling script(php) will regenerate post variables named correctly for the wanted payment website (e.g. paypal, swreg etc.). And then redirect to that page and let the user finish his payment there.
Hence I cannot use sessions variables, because it will be a third party website that handles the query, so I have to conform to their strict standards for processing payments, which is $_POST (I won't be able to modify their handling pages anyway and I'm sure they won't use sessions variables for security...).
The problem with curl and fsockopen, is that it does post the data to (for this examples sake i'll keep to paypal) paypal payment page, but everything is done on the server side hence the user is not redirected to the paypal paying page like with a normal html/form submit, I just get the html code from the paypal page back as a string (inside the php script which is totally useless because I could output it and display the page of paypal, but it would still be located on my website hence would not work either) and that's not what I want, I want php, to sort of create a post like would happend with a html form and pressing a submit button. But without generating a form and hidden variables and adding a submit action for the onload event to handle redirection that way, that's not appropriate either, I don't want the user to able to see/access any of the payment data.
Also I can't use cUrl, because my online website doesn't support it..
I hope you can help me, I've looked at many topics here, but couldn't find an answer, because no one seemed to have exactly the same problem.
Or maybe I'm not searching in the right direction, if you can redirect me to the correct topic?
Thanks in advance