Dynadot โ€” .com Transfer

PHP question

SpaceshipSpaceship
Watch
Impact
0
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

What does that mean? I think that do is a variable and newthread is the argument or something?, The same with F?

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.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
AfternicAfternic
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.
 
0
•••
Read Up

First off, I mean to convey no crudeness, as a lot of people get defensive when you tell them this.

I would recommend reading as many books and articles as you can get your hands on.

I highly recommend the "...In Easy Steps" series from Mike McGrath available on Barnes & Noble here."...In Easy Steps" series from Mike McGrath available on Barnes & Noble here.

Best of luck to you!
 
0
•••
bena8705 said:
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

What does that mean? I think that do is a variable and newthread is the argument or something?, The same with F?

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.

basically each word before = is a variable like cerebus but becarfull with this though if proper security checks are not put in place with this it can cause MAJOR security holes in your code.
 
0
•••
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
 
0
•••
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
CatchedCatched
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back