Slight problem when embedding HTML inside PHP.
Problem #1
logon php page contains the form for user to login. With successful login, it brings up the user to the resume page.
In order to maintain the uniform design throughout all the pages on the site, the logon page contains the same logo and navigational menu that of the other pages.
Once user have successful login, it brings up the resume page with the same logo and menu.
However, the problem is that it is displaying the header twice!!
Here is an error:
Warning: Cannot modify header information - headers already sent by (output started at /www/zzl.org/a/m/i/amishra/htdocs/password_protect.php:8) in /www/zzl.org/a/m/i/amishra/htdocs/password_protect.php on line 166
Problem #2
In addition, the logon form is supposed to store cookies so user doesn't need to re-login every time when attempting to access the resume page but for some reason that functionality is not working.
I would greatly appreciate it someone can direct me to the right path.