brown2005 Posted February 15, 2007 Share Posted February 15, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/38688-why-does-this-not-work/ Share on other sites More sharing options...
Caesar Posted February 15, 2007 Share Posted February 15, 2007 First....if you're not going to have any PHP in that HTML...use single quotes not doublequotes. Otherwise, try escaping the single quotes first. That blank page likely means "display_errors" is set to "Off" in your php.ini file. Quote Link to comment https://forums.phpfreaks.com/topic/38688-why-does-this-not-work/#findComment-185826 Share on other sites More sharing options...
brown2005 Posted February 15, 2007 Author Share Posted February 15, 2007 can u show me an example please? Quote Link to comment https://forums.phpfreaks.com/topic/38688-why-does-this-not-work/#findComment-185829 Share on other sites More sharing options...
Psycho Posted February 15, 2007 Share Posted February 15, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/38688-why-does-this-not-work/#findComment-185842 Share on other sites More sharing options...
brown2005 Posted February 15, 2007 Author Share Posted February 15, 2007 I have worked it out, i have removed the <body></body> tags and it works, i didnt know i wasnt allowed these. Quote Link to comment https://forums.phpfreaks.com/topic/38688-why-does-this-not-work/#findComment-185849 Share on other sites More sharing options...
pkSML Posted February 15, 2007 Share Posted February 15, 2007 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); ?> Quote Link to comment https://forums.phpfreaks.com/topic/38688-why-does-this-not-work/#findComment-185894 Share on other sites More sharing options...
Psycho Posted February 16, 2007 Share Posted February 16, 2007 One thing to note: echo"<FRAMESET --- there must be a space between echo and the double quote. That's not true. It doesn't "look" good, but it's valid. Quote Link to comment https://forums.phpfreaks.com/topic/38688-why-does-this-not-work/#findComment-186014 Share on other sites More sharing options...
pkSML Posted February 16, 2007 Share Posted February 16, 2007 One thing to note: echo"<FRAMESET --- there must be a space between echo and the double quote. That's not true. It doesn't "look" good, but it's valid. Guess you're right! I learned something new today. Quote Link to comment https://forums.phpfreaks.com/topic/38688-why-does-this-not-work/#findComment-186624 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.