ajkiwi88
02-20-2006, 12:39 PM
how can i use php to do the same effect as frames in html?
thanks for any help
cyaz
andy
thanks for any help
cyaz
andy
|
Click to See Complete Forum and Search --> : include instead of frames? ajkiwi88 02-20-2006, 12:39 PM how can i use php to do the same effect as frames in html? thanks for any help cyaz andy welsh 02-20-2006, 02:10 PM <?php include 'a_file.html'; ?> (just a reminder if you have this the page you include it on has to be .php (ex index.php)) Markbad311 02-20-2006, 02:17 PM php only works with " .php " files so keep that in mind. as far as frames and using them 90's are over. LOL Just kidding but if you have frames in any website you control get em out of there. the hurt you in so many ways. Here is a cool link to help you in your journey! http://www.garnetchaney.com/how_to_use_tables_instead_of_frames.shtml basically he says to make a file like this: <? $location=$_GET['location']; if (empty($location)) { $location='index'; } // changelocation($location); // function changelocation($location) { include ('header.html'); echo '<table cols="2" border="0" cellpadding="10" cellspacing="0" align="center" width="100%">'; echo '<tr>'; echo '<td width="224" bgcolor="#0099FF" valign="top">'; include('navbar.html'); echo '</td>'; echo '<td bgcolor="#33CCFF">'; switch ($location) { case 'index': include ('actualindex.html'); break; case 'tutorials': include ('http://www.genericsite.com/tutorials/index.html'); break; } echo '</td></tr></table>'; include ('footer.html'); } ?> webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |