long extensions..?

liunx

Guest
I want to learn the significance of long page extensions.. for example.. <!-- m --><a class="postlink" href="http://www.htmlforums.com/newthread.php?s=test">http://www.htmlforums.com/newthread.php?s=test</a><!-- m --><br />
instead of just <!-- m --><a class="postlink" href="http://www.htmlforums.com/newthread.php">http://www.htmlforums.com/newthread.php</a><!-- m --> and how to make them that way, and if possible, learn how to make my .html or .shtml extensions in the same matter.<!--content-->Here is my UNexpert idea on it...<br />
<br />
The ? and & parts afterwards are variables that are passing information from one page to another. Scripts on the new page appearing will use that information to do... well... whatever they need the information for.<!--content-->Consider a URL:<br />
<!-- w --><a class="postlink" href="http://www.somedomain.com/mainPage.html?name=fred&age=27">www.somedomain.com/mainPage.html?name=fred&age=27</a><!-- w --><br />
The part after the ? is known as the search property, and it consists of a ? followed by pairs of escaped strings.<br />
(An escaped string is one where spaces become + and non Alphanumerics are replaced by a % and then the hex representation, so What's up Doc? becomes What%27s+up+Doc%3F)<br />
The search property is commonly used by search engines. Other uses are to pass data from one web page to another, and by CGI programs using the GET method.<br />
The disadvantage of using the search property is that it's visible to the user and thus open to corruption.<!--content-->makes sense.. but how do you get for example.. <!-- w --><a class="postlink" href="http://www.somedomain.com/mainPage.html?url=files">www.somedomain.com/mainPage.html?url=files</a><!-- w --> to redirect you to <!-- w --><a class="postlink" href="http://www.somedomain.com/files.html">www.somedomain.com/files.html</a><!-- w --> with the "mainPage.html" still in the address bar, instead of <!-- w --><a class="postlink" href="http://www.somedomain.com/files.html?url=files">www.somedomain.com/files.html?url=files</a><!-- w --> ?<!--content-->because it is either included or it was a big page. most (like I do in php) can have if - then statements to see what part of the file they want. if it is file then it only loads that part of the page, but if something else then it oads a different part.<!--content-->
 
Back
Top