Jump to content

why does this not work?


brown2005

Recommended Posts

echo"<FRAMESET cols='800, 200' border='0' frameborder='0' framespacing='0'>\n";

echo" <FRAME src='rfdgd.php' name='main' marginwidth='0' marginheight='0' scrolling='yes' noresize>\n";

echo" <FRAME src='fdg.php' name='sponsors' scrolling='no' frameborder='1' noresize>\n";

echo"</FRAMESET>\n";

 

it just shows a blank white page

Link to comment
https://forums.phpfreaks.com/topic/38688-why-does-this-not-work/
Share on other sites

I see no blatant errors in your code. Have you checked the source of the blank pages that are displayed to see if the code is what you expect? Because the code you have above by itself will show a blank white page unless the src files have content?

 

As for using single vs. double quotes Caeser has a valid point. But, it is definitely not mandatory. But, I always prefer to have my HTML attributes use double quotes, so you could do this:

 

echo '<FRAMESET cols="800, 200" border="0" frameborder="0" framespacing="0">
    <FRAME src="rfdgd.php" name="main" marginwidth="0" marginheight="0" scrolling="yes" noresize>
    <FRAME src="fdg.php" name="sponsors" scrolling="no" frameborder="1" noresize>
</FRAMESET>';

 

But the result should be no different than what you previously had. Again, you need to check the source of the output and of the src files for the frames.

 

echo"<FRAMESET cols='800, 200' border='0' frameborder='0' framespacing='0'>\n";

echo" <FRAME src='rfdgd.php' name='main' marginwidth='0' marginheight='0' scrolling='yes' noresize>\n";

echo" <FRAME src='fdg.php' name='sponsors' scrolling='no' frameborder='1' noresize>\n";

echo"</FRAMESET>\n";

 

it just shows a blank white page

 

One thing to note: echo"<FRAMESET --- there must be a space between echo and the double quote.

 

The Body tag does belong in every valid HTML document (http://www.w3.org/TR/html4/present/frames.html).

 

For future reference, turn on error reporting.

<?php error_reporting(2047); ?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.