Basically I want to have siteA submit form data via POST to siteB.
SiteB then checks the database and says "username exists!" then redirects
you back to siteA with the error message.
I have it to where SiteA -> SiteB, processes the info, and shows the error, but how do I get
the error back to the original site? if I change the Location header then I just get
"the" error for modifying header output. Any suggestions? Thanks!!!!!!
Any suggestions on how I might go about doing this?
Moderator: General Moderators
Re: Any suggestions on how I might go about doing this?
Then you should use "the" method of fixing that error: rearrange your code so the header() gets called before anything is output.linewire wrote:if I change the Location header then I just get
"the" error for modifying header output.
The fact that you're outputting something makes me suspicious that you don't quite understand how redirections work. Post code.
Re: Any suggestions on how I might go about doing this?
I thought I knew but maybe I don't. I placed the header() so it was called first also but then I couldn't send the $error variable along with it.Then you should use "the" method of fixing that error: rearrange your code so the header() gets called before anything is output.
The fact that you're outputting something makes me suspicious that you don't quite understand how redirections work. Post code.