THUNDERxRAGE Posted March 21, 2007 Share Posted March 21, 2007 I've tried many different ways. Nothing works properly. Well, one way that it works, but the other site cant seem to find the frame name, because it is in PHP. It works so well in HTML. Now, I am trying to create one in PHP, so I do not have to create hundreds of HTML pages for each links. There is only one PHP page and it contains the framesets. What is the proper way to code framesets in PHP? Thunder Link to comment https://forums.phpfreaks.com/topic/43751-help-me-to-create-a-frameset-php-page/ Share on other sites More sharing options...
shaunrigby Posted March 21, 2007 Share Posted March 21, 2007 Try creating a templae and then pass a pageid to the page for each seperate page, then look that id up in a db and then include the set file... Or you could just use the include function eg <?php include 'path/to/file.php'; Link to comment https://forums.phpfreaks.com/topic/43751-help-me-to-create-a-frameset-php-page/#findComment-212409 Share on other sites More sharing options...
redarrow Posted March 21, 2007 Share Posted March 21, 2007 frames are bad to get googled hope you no read on seo tips ok. Link to comment https://forums.phpfreaks.com/topic/43751-help-me-to-create-a-frameset-php-page/#findComment-212421 Share on other sites More sharing options...
THUNDERxRAGE Posted March 22, 2007 Author Share Posted March 22, 2007 I apologize for not being able to understand both posts. Thunder Link to comment https://forums.phpfreaks.com/topic/43751-help-me-to-create-a-frameset-php-page/#findComment-212457 Share on other sites More sharing options...
chronister Posted March 22, 2007 Share Posted March 22, 2007 They are saying that frames are not good. Search Engine's don't play well with them not to mention that they simply present a whole load of problems. Try something like this. header.php <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Untitled Document</title> </head> <body> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td height="49" colspan="2" align="center">Banner Goes Here </td> </tr> <tr> <td width="18%" align="center">Navigation goes here </td> <td width="82%" align="center"> <p> All content will load here </p> <?php function footer(){ ?> </td> </tr> <tr> <td colspan="2" align="center">Footer goes here </td> </tr> </table> </body> </html> <?php } ?> Then on each page simply do this. <?php include('header.php') ?> some content goes here blah blah blah <?php footer(); ?> This allows you to create one page for the layout (template page mentioned by shaunrigby ) and then have all content load in a specific section. You could replicate this in css using div's if you wanted. Link to comment https://forums.phpfreaks.com/topic/43751-help-me-to-create-a-frameset-php-page/#findComment-212628 Share on other sites More sharing options...
THUNDERxRAGE Posted March 22, 2007 Author Share Posted March 22, 2007 I will try. The main site and other main pages, the entire site, are not framed. The only thing that have frameset is one PHP page per category. When a person click a link to enter a room, the link call up the PHP page, which contains the frameset, to bring up the lobby and hide two specific frame names. I will give that method a try. Thunder Link to comment https://forums.phpfreaks.com/topic/43751-help-me-to-create-a-frameset-php-page/#findComment-212670 Share on other sites More sharing options...
THUNDERxRAGE Posted March 22, 2007 Author Share Posted March 22, 2007 This is what I had on the PHP page. It has $room and other $_____ commands to bring up the correct lobby (game room). It works so well in plain HTML. When I try it in PHP, it have a similar problem that I had with HTML. Right now, I solved that problem with HTML. Just have not solve it with PHP. The lobby loads just fine and everything, but when a person go to open a table, the table will not load, just blank gray, because Yahoo have the tables to connect with the lobby. When opening the table, it instruct the ads in the lobby to change. In this case, with PHP, Yahoo seem to unable to locate the frame name in PHP. So, yeah, I know it is confusing. I'm going to see if I can try your way. If anyone have an idea upon seeing the codes below, let me know. Thunder <html> <head> <title>Xtreme Backdoors</title> <?php extract($HTTP_GET_VARS); extract($HTTP_POST_VARS); echo"<frameset rows='0,0,0,*' frameborder=0 border=0 framespacing=0>"; echo"<frame name='ad_space' src='http://games.yahoo.com/ygames/home/supernorthroomad.php?room=pool_102_b&si=780000362&intl=us&page=pl&src=applet&t=3627' marginwidth='2' marginheight='2' scrolling='no' frameborder='0' border='0' framespacing='0'>"; echo"<frame name='games_logo' src='http://us.i1.yimg.com/us.yimg.com/i/us/ga/sl_3/us_mast.gif' marginwidth='5' marginheight='0' scrolling='no' frameborder='0' border='0' framespacing='0'>"; echo"<frame name='yog_$room' src='http://games.yahoo.com/games/loading.html?room=$room&prof_id=$prof_id&small=$small&follow=' marginwidth='0' marginheight='0' scrolling='no' frameborder='0' border='0' framespacing='0'>"; echo"<frame name='yog_applet_$room' src='http://games.yahoo.com/games/applet.html?room=$room&prof_id=$prof_id&small=$small&follow=&nosignedcab=no' marginwidth='0' marginheight='0' scrolling='no' frameborder='0' noresize>"; echo"</frameset>"; echo"<script language='javascript'>window.name='yog_ante_$room';</script>"; ?> </head> <body> </body> </html> Link to comment https://forums.phpfreaks.com/topic/43751-help-me-to-create-a-frameset-php-page/#findComment-212672 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.