Jump to content

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); ?>

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.