i get this error in all my pages.i have no idea what to do.please help me to solve it.it shows the error is in line 11.(<!DOCTYPE HTML PUBLIC .....) <?php // members page session_start(); if ( empty( $username ) ) { print "Please login below!"; include 'login.html'; } else { <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <html> <head> <title></title> <meta name="description" content="The ultimate tamil cinenews portal.grab all the latest hot gossips on tamil movies,actors,actress,interviews,film reviews,release dates and more.Also download unlimited number of latest tamil movie songs in mp3 format and top rated softwares for free" /> <meta name="keywords" content="kollywood gossips,news,hot,tamil cinema world news ajith's,vikaram's,surya's,vijay's,rajini,kamal,nayanthara,trisha,jothika,namitha,bhavana,kushboo,jeeva,maddy,kodambakkam special" /> </head> <frameset rows="131,*" cols="*" framespacing="0" frameborder="NO" border="0"> <frame src="top.php" name="topFrame" frameborder="no" scrolling="NO" noresize marginwidth="0" marginheight="0" > <frameset rows="*" cols="138,*" framespacing="0" frameborder="NO" border="0"> <frame src="left.php" name="leftFrame" frameborder="no" scrolling="NO" noresize marginwidth="0" marginheight="0"> <frameset rows="23,*" cols="*" framespacing="0" frameborder="NO" border="0"> <frame src="n_top.php" name="topFrame1" frameborder="no" scrolling="NO" noresize marginwidth="0" marginheight="0" > <frameset rows="*,15" cols="*" framespacing="0" frameborder="NO" border="0"> <frame src="maincinenews.php" name="mainFrame" frameborder="no" marginwidth="0" marginheight="0"> <frame src="n_bot.php" name="bottomFrame" frameborder="no" scrolling="NO" noresize marginwidth="0" marginheight="0"> </frameset> </frameset> </frameset> </frameset> <noframes><body> </body></noframes> </html> } ?> PHP:
You have to use either an echo or close the php with ?> e.g. by enclosing with ' and not including ' in content <?php // members page session_start(); if ( empty( $username ) ) { print "Please login below!"; include 'login.html'; } else { echo ' <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <html> <head> <title></title> <meta name="description" content="The ultimate tamil cinenews portal.grab all the latest hot gossips on tamil movies,actors,actress,interviews,film reviews,release dates and more.Also download unlimited number of latest tamil movie songs in mp3 format and top rated softwares for free" /> <meta name="keywords" content="kollywood gossips,news,hot,tamil cinema world news ajiths,vikarams,suryas,vijays,rajini,kamal,nayanthara,trisha,jothika,namitha,bhavana,kushboo,jeeva,maddy,kodambakkam special" /> </head> <frameset rows="131,*" cols="*" framespacing="0" frameborder="NO" border="0"> <frame src="top.php" name="topFrame" frameborder="no" scrolling="NO" noresize marginwidth="0" marginheight="0" > <frameset rows="*" cols="138,*" framespacing="0" frameborder="NO" border="0"> <frame src="left.php" name="leftFrame" frameborder="no" scrolling="NO" noresize marginwidth="0" marginheight="0"> <frameset rows="23,*" cols="*" framespacing="0" frameborder="NO" border="0"> <frame src="n_top.php" name="topFrame1" frameborder="no" scrolling="NO" noresize marginwidth="0" marginheight="0" > <frameset rows="*,15" cols="*" framespacing="0" frameborder="NO" border="0"> <frame src="maincinenews.php" name="mainFrame" frameborder="no" marginwidth="0" marginheight="0"> <frame src="n_bot.php" name="bottomFrame" frameborder="no" scrolling="NO" noresize marginwidth="0" marginheight="0"> </frameset> </frameset> </frameset> </frameset> <noframes><body> </body></noframes> </html>'; } ?> PHP:
<?php // members page session_start(); if ( empty( $username ) ) { print "Please login below!"; include 'login.html'; } else { ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd"> <html> <head> <title></title> <meta name="description" content="The ultimate tamil cinenews portal.grab all the latest hot gossips on tamil movies,actors,actress,interviews,film reviews,release dates and more.Also download unlimited number of latest tamil movie songs in mp3 format and top rated softwares for free" /> <meta name="keywords" content="kollywood gossips,news,hot,tamil cinema world news ajiths,vikarams,suryas,vijays,rajini,kamal,nayanthara,trisha,jothika,namitha,bhavana,kushboo,jeeva,maddy,kodambakkam special" /> </head> <frameset rows="131,*" cols="*" framespacing="0" frameborder="NO" border="0"> <frame src="top.php" name="topFrame" frameborder="no" scrolling="NO" noresize marginwidth="0" marginheight="0" > <frameset rows="*" cols="138,*" framespacing="0" frameborder="NO" border="0"> <frame src="left.php" name="leftFrame" frameborder="no" scrolling="NO" noresize marginwidth="0" marginheight="0"> <frameset rows="23,*" cols="*" framespacing="0" frameborder="NO" border="0"> <frame src="n_top.php" name="topFrame1" frameborder="no" scrolling="NO" noresize marginwidth="0" marginheight="0" > <frameset rows="*,15" cols="*" framespacing="0" frameborder="NO" border="0"> <frame src="maincinenews.php" name="mainFrame" frameborder="no" marginwidth="0" marginheight="0"> <frame src="n_bot.php" name="bottomFrame" frameborder="no" scrolling="NO" noresize marginwidth="0" marginheight="0"> </frameset> </frameset> </frameset> </frameset> <noframes><body> </body></noframes> </html> <? } ?>
Also keep in mind if you are going to run html in php delimiters make sure you escape it. Using your /