Amezis 0 Report post Posted February 25, 2005 I saw on a page that the adress was 'index.php?page=something.html'. I don't know anything in PHP, but I think the 'index.php' was the menu, and 'something.html' was the content. I think it works like a frame... Anyway... Can someone give me a code so I can do it, maybe a little tutorial too?BTW the page i'm talking about can be found here... Share this post Link to post Share on other sites
Bouwie 0 Report post Posted February 25, 2005 Amezis i dont know Share this post Link to post Share on other sites
Angelkiller 0 Report post Posted February 25, 2005 i don't no it.... Share this post Link to post Share on other sites
Amezis 0 Report post Posted February 25, 2005 umm... do you know what I mean? Share this post Link to post Share on other sites
Neutrality 0 Report post Posted February 25, 2005 I know what you are talking about. What you're seeing is a variable being passed to the browser. This is very common in php-based websites. Instead of creating multiple pages for a website, you can use a variable to indicate what content youwant to show. For example: echo "<a href='index.php?page=pagetwo'>Some Page</a>";if($page=="" or $page=="home"){ echo "Welcome to my website! I hope you enjoy it.";}else{ if($page=="pagetwo") { /* Let's assume that this code here is index.html */ echo "This is the second page on my website. "; }} This code should help you understand why there was a webpage's name behind a variable. I hope it does.By the way, you're partly right when you said that "index.php" is a menu and "something.html" a choice. But, it's not a frame. Not at all. It's a page "generated"by the .php file. Well, it's not a "page" really, but you get the idea. Share this post Link to post Share on other sites
alexia 0 Report post Posted February 27, 2005 U Can Make PHP Page with If (Fun)For Example u set if index.php?action=alexthen your iframe browse to yahoo.comand you can many think in this option you can manage 100 ta html page with this Funyou can write 100 ta if and 100 html site and user can Switch with this optionsNice Job Share this post Link to post Share on other sites
mobious 0 Report post Posted February 28, 2005 you can also make the page redirect to the given url. $page = $_GET['page'];header("Location: $page"); this is much more efficient since you do not have to fill one html file with all the html tags for your pages. Share this post Link to post Share on other sites