English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Example:
www.example.com/page1/topic.php?p=1234

2007-12-19 12:49:54 · 3 answers · asked by PersonXXXXXXXXXXXXXXXXXXXXXXXXXX 3 in Computers & Internet Programming & Design

3 answers

A question mark denotes the separation of a URL and GET data. It is used by a scripting language to generate part or all of the page.

Your example is a PHP page, so for example it would use the data 1234 stored in p.

$getData = $_GET['p'];
echo $getData;
?>

That would output on the page
1234

A more practical example you can see right on this page where it has the value qid, which is the Question ID that uniquely identifies this question and tells the script to open this question specifically.

2007-12-19 12:53:18 · answer #1 · answered by Zurahn 4 · 5 0

It marks the beginning of a query string.

2007-12-19 12:58:27 · answer #2 · answered by Anonymous · 1 2

i believe it is a place holder, like the address won't except a certain character.... you can type the character in when you type the address (ex. " " ~ ect.) and then when the page loads it converts it to a question mark a default

2007-12-19 12:54:03 · answer #3 · answered by SPCAnde 6 · 0 3

fedest.com, questions and answers