| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| New Member Join Date: Dec 2004
Posts: 3
![]() | PHP question Hi, i've noticed that some sights sem to have an extension after the filename, for example on the page i'm on now the URL reads Code: .../newthread.php?do=newthread&f=46 Basicaly i'm creating a website and want a page that i can post tutorials on, i want to be able to sort by tutorial type and be able to display only certain tutorials etc. How would i go about doing this? I do not want to use a premade script. |
| |
| | #2 (permalink) |
| NamePros Regular Join Date: Oct 2003 Location: Sweden
Posts: 395
![]() ![]() | The script/file name is everything before the question mark.The query string is everything after the ?, one argument would be each bit of the query string separated by &. each argument here consists of a variable name, assignment operator (=) and the value. The variables are parsed by the script newthread.php once a request is sent, to fetch the appropiate info from appropiate sources. As for creating a tutorials listing application I have to recommend that you go through a few beginner tutorials on PHP and web applications before getting specific. |
| |
| | #3 (permalink) |
| NamePros Member Join Date: Dec 2004 Location: Cleveland, Ohio
Posts: 74
![]() | |
| |
| | #4 (permalink) | ||||
| Senior Member Join Date: May 2003
Posts: 2,187
![]() ![]() ![]() |
| ||||
| |
| | #5 (permalink) |
| Senior Member Join Date: Aug 2002
Posts: 1,255
![]() ![]() | Here's a bit of an explanation of how it works. The tutorial is a bit old and could be updated, but it should explain the very basics of using the query string with PHP. http://namepros.com/showthread.php?t=14664 |
| |