PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
This is a newbie question, but is there a way I can pass variables therough the header without using GET? Basically I am passing variables from one PHP file to another but I was wondering if there was simple way to pass ALL variables (ie POST?).
sessions.. however you need to make sure that the session header is output, because a header level redirection can often short circuit what php will actually send..
Have you got any whitespace or outputted data before the session_start() ? That's the most common cause and a quick search on these forums should bring up some useful results
Thanks, putting the session_start(); before my variable got rid of the error, but now my second page is still not pulling the variables from th session data. Looking into it.
Kind of my own question: I haven't been able to find any resources about this, but shouldn't it be possible to send POST data with header()? All you're really doing is sending http headers correct?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Ok I can't seem to get this to work. I seem to be saving the variables fine, but am I doing something wrong in my code (payment.php) to retrieve the data from the session variables?