Page 1 of 1

Any suggestions on how I might go about doing this?

Posted: Mon Sep 28, 2009 1:53 am
by linewire
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!!!!!!

Re: Any suggestions on how I might go about doing this?

Posted: Mon Sep 28, 2009 2:13 am
by requinix
linewire wrote:if I change the Location header then I just get
"the" error for modifying header output.
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.

Re: Any suggestions on how I might go about doing this?

Posted: Mon Sep 28, 2009 1:05 pm
by linewire
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.
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.