mariovaldez.net

MV.net forums
It is currently 14 Jul 2016, 00:46

All times are UTC - 7 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: i get a blank screen
PostPosted: 22 Apr 2005, 01:09 

Joined: 21 Apr 2005, 14:06
Posts: 1
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>


Report this post
Top
 Profile  
Reply with quote  
PostPosted: 09 May 2005, 05:22 
User avatar

Joined: 06 Mar 2003, 03:21
Posts: 447
Location: Monterrey, NL, Mexico
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.


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group