firecat318 Posted April 22, 2008 Share Posted April 22, 2008 I wanted to make a page on my website that would have multiple topics, and didn't want them to all be on seperate .html pages. I also don't want to put them on the same page, because it would be too long. Here is a URL of facebook that replicates what I am talking about. http://www.facebook.com/help.php?page=432 Notice how after the help.php it has ?page=432... How do you get the ?page=432 to show up and have content on it? Link to comment https://forums.phpfreaks.com/topic/102375-question-regarding-php/ Share on other sites More sharing options...
iarp Posted April 22, 2008 Share Posted April 22, 2008 Most likely calls upon a database to retrieve whatever is in # 432 in the table. Link to comment https://forums.phpfreaks.com/topic/102375-question-regarding-php/#findComment-524189 Share on other sites More sharing options...
phpretard Posted April 22, 2008 Share Posted April 22, 2008 What shows up now? Link to comment https://forums.phpfreaks.com/topic/102375-question-regarding-php/#findComment-524198 Share on other sites More sharing options...
phpretard Posted April 22, 2008 Share Posted April 22, 2008 Some pages for example...432.php might be written as such: if (You aint got no business here){ echo "Nonya Business"; } else { echo "Here's Ya Business"; } Link to comment https://forums.phpfreaks.com/topic/102375-question-regarding-php/#findComment-524205 Share on other sites More sharing options...
947740 Posted April 22, 2008 Share Posted April 22, 2008 They probably use a $_GET variable and then write/echo/print content dependent on the number. Kind of similar to this website, at the top you have "action=???". That tells the PHP what exactly you are doing. phpretard gave an example, but I did not understand his point at first. He/she is making the same point, however. Link to comment https://forums.phpfreaks.com/topic/102375-question-regarding-php/#findComment-524217 Share on other sites More sharing options...
firecat318 Posted April 22, 2008 Author Share Posted April 22, 2008 How would you go about making an extension.. ?blah=33 Would you write the code right on the "help.php" page for example? Link to comment https://forums.phpfreaks.com/topic/102375-question-regarding-php/#findComment-524224 Share on other sites More sharing options...
947740 Posted April 22, 2008 Share Posted April 22, 2008 If that is the text before the?blah=33. www.whatever.com/help.php?blah=33. So yes, you would write the code on that page. It is just a variable. Link to comment https://forums.phpfreaks.com/topic/102375-question-regarding-php/#findComment-524251 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.