mariovaldez.net
http://www.mariovaldez.net/webapps/forums/

i get a blank screen
http://www.mariovaldez.net/webapps/forums/viewtopic.php?f=11&t=218
Page 1 of 1

Author:  dandono [ 22 Apr 2005, 01:09 ]
Post subject:  i get a blank screen

hi, when i copy the code for password protecting a page it first displays the login page but when i login it does not display anything on the page but when i view the source of the page it has all the html code that i want to display. have i done something wrong?
this is my code:
<?php
session_start();
$slogin_noauthpage = 0;
$slogin_pagetitle = "Dan's Web Server 2005!";
$slogin_path = "D:/inetpub/xproot/login/";
include_once ($slogin_path . "/slogin_lib.inc.php");
include_once ($slogin_path . "/header.inc.php");
?>
<html>
<body>
<frameset framespacing=0 frameborder=0 border=0 cols="15%,85%">
<frameset rows="10%,1*">
<frame name=Frame3 src="/main/win/3.php" target="dwsmain">
<frame name=dwsmenu src="/main/win/2.htm" scrolling=no noresize target="dwsmain">
</frameset>
<frameset rows="10%,*">
<frame name=Frame2 src="/main/win/4.htm" target="dwsmain" scrolling=no noresize>
<frame name=dwsmain src="/main/win/1.php" scrolling=no noresize>
</frameset>
<noframes>
<body>
<p>Dan's Web Server 2005! - Frames cannot be used on your system.</p>
</body>
</noframes>
</frameset>
</html>

Author:  mvaldez [ 09 May 2005, 05:22 ]
Post subject:  Blank screen when using frames...

dandono:

> hi, when i copy the code for password
> protecting a page it first displays the
> login page but when i login it does not
> display anything on the page but when
> i view the source of the page it has all
> the html code that i want to display.
> have i done something wrong?
> this is my code:

I have tested your code. Delete the following line:
Code:
include_once ($slogin_path . "/header.inc.php");


And delete the first body tag:
Code:
<html>
<body>
<frameset framespacing=0 frameborder=0...


The header.inc.php file has a BODY tag.

There should not be BODY tags before the frameset. If there are any, the whole page is not rendered properly.

Please test this and let me know. :)


Regards,

Mario A. Valdez-Ramirez.

Page 1 of 1 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/