View Full Version : Hm... So..? [+REP]
Jaysir
08-12-2007, 09:34 PM
Okay so I use a lot of iframes on my site, and i just wanted to know if that bad? It doesn't hurt anything.. and I really do prefer it.
I guess i'm just asking what are the downfalls of using it?
Luno1599
08-12-2007, 09:36 PM
Im not sure i use to use it now i use php $_GET to get pages
It's very Web 1.0, in answer to your question. Most people are using PHP to control their site navigation (ie. a user will go to index.php?page=contactus), and PHP will include contactus.php.
Chippiewill
09-12-2007, 01:28 AM
or they use .htaccess to make it from
index.php?page=watever
to
watever.php
vWill
09-12-2007, 03:35 AM
It's very Web 1.0, in answer to your question. Most people are using PHP to control their site navigation (ie. a user will go to index.php?page=contactus), and PHP will include contactus.php.
Could someone explain his method?
Luno1599
09-12-2007, 10:22 AM
Yes use a script like this:
<?php
$url = $_GET["view"];
if(isset($_GET["view"]) && $_GET["view"] != "")
{
if(file_exists("$url.php"))
{
include("$url.php");
}
else
{
include("404.php");
}
}
else
{
include("home.php");
}
?>
Then in the link you need to put ?view=home this will go to home.php
Dan
Josh-H
09-12-2007, 10:25 AM
In my opinion, stick with what you know. Don't go using php scripts that you don't understand as when you get a problem you're not going to know whats wrong and how to fix it.
If you like iframes then use iframes. They're not brilliant and are terrible for search engine optimization but if they're working for you then continue and then move on when you have the knowledge :).
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.