Dynadot Aftermarket: discover domain gems worth investing in. Visit our aftermarket.

PHP question

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

bena8705

New Member
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
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
Close
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
Close
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
Close
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
Close
CatchedCatched

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back