-2

Im a little confused and need som help. Im using a bootstrap CDN in my php-project and this is causing me some problems..

When i remove the bootstrap CDN session and login handling is working just fine but when i insert it back in my scripts i get the following Warnings an i dont know why:

startpage - Warnings enter image description here

header.php enter image description here

index.php enter image description here

What is wrong? Thanks in advance!

Webbie
  • 537
  • 2
  • 10
  • 25

1 Answers1

2

header.php contains html output. when you include it at the beginning of index.php, it starts outputting html as well. only after that you include your login.php.

since login.php contains code that needs to be executed BEFORE your page starts outputting html code, a warning is raised.

check if you can switch the order, include login.php before header.php

GrafiCode
  • 3,307
  • 3
  • 26
  • 31