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? Quote 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. Quote 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? Quote 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"; } Quote 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. Quote 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? Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/102375-question-regarding-php/#findComment-524251 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.