Jump to content

[SOLVED] header


sstangle73

Recommended Posts

		ob_start();
	header("Location: http://nyelitefc.com/thanks_contact.php");
	ob_end_flush();

didnt work?

 

ob_start has to be placed at the very top of the script, before the output. You do not need to worry about flushing it as when the script is down the output will automatically be flushed.

 

But doing the output has already been sent since ob_start is not before the output. Make sense?

Link to comment
https://forums.phpfreaks.com/topic/155782-solved-header/#findComment-820050
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.