if(isset($_POST['submit2']))
{
if($_POST['linklabel'] == '')
{
header('Location: index.php?VIEW=BLAH&message=failure');
}
else
{
Here is my code, it is giving me the typical redirect error of :
Warning: Cannot modify header information – headers already sent by (output started at /home/content/74/8256574/blah/blah/index.php:24) in /home/content/74/8256574/blah/blah/blah/blah.php on line 14.
The header redirect above is what is on line 14. On line 24 of the index.php page, there is a css file (don’t think that would be causing the issue..).
I am submitting a form, and checking the form for empty values. If it finds an empty value, redirect to above URL with &message=failure
I know there are a lot of questions on here asking the same thing but I still can’t solve my issue. Please, any help would be great.
If data has been sent to the browser, you can not modify header info. Simple fix is to buffer the output.