Jump to content

Php redirect question...


nimzie

Recommended Posts

I have a page which is all PHP processing. It outputs errors via echo.

 

Since I am using echos for errors, I can not use

header("location:http://wwhatever.com")

after the code to redirect to the HTML page depending on the success of my operation. The user arrives at this page after clicking a submit button. Form action gets me to the page. The page is all PHP right now.

 

What is a good way to get around this? I do need the echos in case there are errors - also to keep the user apprised of what is happening in the processing.

 

Any advice?

 

Thanks,

 

Adam

Link to comment
https://forums.phpfreaks.com/topic/75218-php-redirect-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.